public IEnumerable <AdminUserDto> List() { try { return(rep.List(new Domain.Filters.BaseFilter()).EnumerableTo <AdminUserDto>()); } catch (Exception) { throw; } }
public SearchResult <List <UserResponse> > GetAdminUserList(SearchRequest searchRequest) { SearchResult <List <UserResponse> > userList; try { userList = _adminUserRepository.List(searchRequest); } catch (Exception ex) { _logger.Error(Constants.ACTION_EXCEPTION, $"UserManager.Login {ex.Message}"); return(null); } return(userList); }
public SearchResult <List <UserResponse> > GetAdminUserList(SearchRequest searchRequest) { SearchResult <List <UserResponse> > userList; try { userList = _adminUserRepository.List(searchRequest); } catch (Exception ex) { _logger.ErrorLog(ex, this.GetType().Name, MethodBase.GetCurrentMethod().Name); return(null); } return(userList); }