예제 #1
0
 public bool UpdateUser(User user)
 {
     return(DoUnitOfWork(() => db.BasicOperation(new
     {
         ID = user.Id,
         EMAIL = user.Email,
         FIRSTNAME = user.FirstName ?? "",
         LASTNAME = user.LastName ?? "",
         PASSWORD = user.Password,
         ROLE = user.Role,
         VERIFICATIONCODE = user.VerificationCode,
         VERIFIED = user.Verified,
         PASSWORDRESETTOKEN = user.PasswordResetToken,
         PASSWORDRESETEXPIRES = user.PasswordResetExpires,
         PHONE = user.Phone,
         ACTIVE = user.Active,
         MODIFIEDBY = user.ModifiedBy,
         MODIFIEDON = user.ModifiedOn
     }, UpdateUserSp)));
 }