public Try <IQueryable <DocumentTypeDto> > Execute() { Func <IQueryable <DocumentTypeDto> > query = () => repository .GetAll() .Select(x => x.ToDocumentTypeDto()); return(Try(query)); }
public ActionResponse <IQueryable <DocumentTypeDto> > GetAll(params Enums.Status[] statuses) { var response = _documentTypeRepository.GetAll(statuses); return(response); }
public async Task <IEnumerable <DocumentTypeDto> > GetAll() { var response = await Task.FromResult(_mapper.Map <IEnumerable <DocumentTypeDto> >(_repoDocumentType.GetAll <DocumentTypeEntity>())); if (response.Count() == 0) { throw new DocumentTypeEntityIsEmptyException(); } return(response); }
public IEnumerable <DocumentType> GetAll() { return(_Repository.GetAll()); }
public ICollection <DocumentTypeDomain> GetAllTypes() { return(_documentTypeRepository.GetAll()); }
public List <DocumentTypeViewModel> GetDocumentTypes() { return(_repository.GetAll().ProjectTo <DocumentTypeViewModel>().ToList()); }