Exemple #1
0
 public UserRoleDto CreateUserRole(UserRoleDto userRole)
 {
     try
     {
         var role = userRole.ToUserRole();
         _userRoleRepository.UpdateAndCommit(role);
         return role.ToUserRoleDto();
     }
     catch (Exception ex)
     {
         _logger.Log(ex);
         return null;
     }
 }
Exemple #2
0
 public void UpdateUserRole(UserRoleDto userRole)
 {
     try
     {
         _userRoleRepository.Update(userRole.ToUserRole());
         _unitOfWork.SaveChanges();
     }
     catch (Exception ex)
     {
         _logger.Log(ex);
     }
 }