public static void Create(UserVerificationDTO userVerificationDTO) { UserVerification userVerification = MapperTransform <UserVerification, UserVerificationDTO> .ToEntity(userVerificationDTO); Database.UserVerifications.Create(userVerification); Database.Save(); }
public static void Update(UserVerificationDTO userVerificationDTO) { UserVerification userVerification = Database.UserVerifications.Get(userVerificationDTO.Id); userVerification.Email = userVerificationDTO.Email; userVerification.PhoneNumber = userVerificationDTO.PhoneNumber; Database.UserVerifications.Update(userVerification); Database.Save(); }