protected IQueryable <TGetAllDto> GetAllInternal(PagedResultsRequestDTO request)
        {
            IQueryable <TGetAllDto> result = null;

            if (request == null)
            {
                request = new PagedResultsRequestDTO();
            }
            try
            {
                var baseQuery = ArtifactRepo.GetAll();
                result = baseQuery
                         .ProjectTo <TGetAllDto>()
                         .SearchQuery(request, GetSearchFields());
            }
            catch (Exception ex)
            {
                Error(ex);
            }

            return(result);
        }
Пример #2
0
 public virtual IList <T> GetAll()
 {
     return(_repositoryBase.GetAll());
 }