public async Task <IEnumerable <AssetCategory> > GetAssetCategoriesAsync()
        {
            var resp = await _assetsService.AssetCategoryGetAllAsync();

            return(resp);
        }
 public Task <IList <AssetCategory> > GetAssetCategoriesAsync()
 {
     return(_assetsService.AssetCategoryGetAllAsync());
 }
Exemple #3
0
        public async Task <IActionResult> GetAssetCategories()
        {
            var res = await _assetsService.AssetCategoryGetAllAsync();

            return(Ok(GetAssetCategoriesResponseModel.Create(res.Select(itm => itm.ConvertToApiModel()).ToArray())));
        }