Пример #1
0
 public IEnumerable <AdminUserDto> List()
 {
     try
     {
         return(rep.List(new Domain.Filters.BaseFilter()).EnumerableTo <AdminUserDto>());
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
        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);
        }