public async Task<IEnumerable<DocumentCategory>> RetrieveDocumentCategoriesAsync() { try { var documentCategories = await _documentDataService.RetrieveAllAsync<Entity.DocumentCategory>(); return _mapper.MapToList<DocumentCategory>(documentCategories); } catch (Exception ex) { throw new Exception(ex.Message); } }
public async Task <IEnumerable <DocumentCategory> > RetrieveDocumentCategoriesAsync() { var documentCategories = await _documentDataService.RetrieveAllAsync <Entity.DocumentCategory>(); return(_mapper.Map <IEnumerable <DocumentCategory> >(documentCategories)); }