Example #1
0
        public bool UpdateUser(UserDetails user)
        {
            bool status = false;

            try
            {
                DataAccessLayer.Models.UserDetails updatedUser = user.JsonToEntity();
                status = repo.UpdateUserWithDetails(updatedUser);
            }
            catch (Exception) { status = false; }
            return(status);
        }
Example #2
0
 public DataAccessLayer.Models.UserDetails JsonToEntity()
 {
     DataAccessLayer.Models.UserDetails newUser = new DataAccessLayer.Models.UserDetails()
     {
         UserId               = this.UserId,
         FirstName            = this.FirstName,
         LastName             = this.LastName,
         BranchOfficeLocation = this.BranchOfficeLocation,
         DateOfBirth          = this.DateOfBirth,
         PhoneNumber          = this.PhoneNumber,
         UserStatusDesc       = this.UserStatusDesc,
         EntitlementDesc      = this.EntitlementDesc
     };
     return(newUser);
 }