Exemplo n.º 1
0
        public GetUserResponse GetUserListAsync([FromQuery] GetUserRequest request)
        {
            var users = Context.User;

            FilterService = new FilterService(request);

            if (users.Count() == 0)
            {
                return(new GetUserResponse(null, EzconetErrors.Ezconet_400_Database_No_Records_Found.ToString()));
            }

            List <UsersDTO> filteredList = FilterService.ExecuteFilter(users);



            return(filteredList.Count() == 0 ?
                   new GetUserResponse(null, EzconetErrors.Ezconet_400_Database_No_Records_Found.ToString())
                : new GetUserResponse(filteredList, null));
        }