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);
     }
 }
예제 #2
0
        public async Task <IEnumerable <DocumentCategory> > RetrieveDocumentCategoriesAsync()
        {
            var documentCategories = await _documentDataService.RetrieveAllAsync <Entity.DocumentCategory>();

            return(_mapper.Map <IEnumerable <DocumentCategory> >(documentCategories));
        }