A thermodynamically and geometrically consistent mathematical model of large strains of materials with elastic, viscous and plastic properties is proposed. The viscous properties of a material are considered to provide a creep process and, therefore, the slow growth of irreversible strains during unloading and the stage preceding plastic flow. Under the fast growth of irreversible strains under the conditions of plastic flow, the viscous properties emerge as a mechanism that resists to this flow. Thus, the accumulation of irreversible strains initially occurs in the creep process, then under the plastic flow condition and finally because of material creep (during unloading). The change in the mechanism of irreversible strain growth occurs on elastoplastic boundaries moving in the deformed material. This change is only possible under the conditions of the continuity of irreversible strains and their rates. This continuity requires the coordination in the definitions of irreversible strain rates in the dependence on stresses, i.e. in laws of creep and plasticity. The change in the production mechanisms of irreversible strains means a different setting of the sources in differential equations of change (transfer equations) for these strains. Thus, irreversible strains are not divided into creep and plastic ones. The hypothesis of the independence of thermodynamic potentials (internal energy, free energy) from irreversible strains is applied with the aim of most visibility of the model relations. Under the condition of the acceptance of this hypothesis, an analogue of the Murnaghan formula is obtained, i.e. the stresses are completely determined by the level and distribution of the reversible strains as in the classical elastoplasticity theory. The main statements of the proposed model are illustrated by a boundary value problem solved in the framework of the model. This problem is about the deformation of an elastoviscoplastic material placed in the gap between two rigid cylindrical surfaces under the rotation of one of them and the material slipping in the neighbourhood of the internal surface.