public static UserPrimitive GetPrimitiveCopy(this UserPrimitive primitiveToCopy)
        {
            if (primitiveToCopy == null) return null;

                UserPrimitive primitive = new UserPrimitive();

                primitive.Id = primitiveToCopy.Id;

                primitive.Nick = primitiveToCopy.Nick;

                primitive.Name = primitiveToCopy.Name;

                primitive.Surname = primitiveToCopy.Surname;

                primitive.Email = primitiveToCopy.Email;

                primitive.Password = primitiveToCopy.Password;

                primitive.PasswordSalz = primitiveToCopy.PasswordSalz;

                primitive.Phone = primitiveToCopy.Phone;

                primitive.CreateTime = primitiveToCopy.CreateTime;

                primitive.DeleteTime = primitiveToCopy.DeleteTime;

                return primitive;
        }
        public static UserPrimitive GetPrimitive(this User entity)
        {
            UserPrimitive primitive = new UserPrimitive();

                primitive.Id = entity.Id;

                primitive.Nick = entity.Nick;

                primitive.Name = entity.Name;

                primitive.Surname = entity.Surname;

                primitive.Email = entity.Email;

                primitive.Password = entity.Password;

                primitive.PasswordSalz = entity.PasswordSalz;

                primitive.Phone = entity.Phone;

                primitive.CreateTime = entity.CreateTime;

                primitive.DeleteTime = entity.DeleteTime;

                return primitive;
        }