Пример #1
0
        public async Task <IEnumerable <AssetCategory> > GetAssetCategoriesAsync()
        {
            var resp = await _assetsService.AssetCategoryGetAllAsync();

            return(resp);
        }
Пример #2
0
 public Task <IList <AssetCategory> > GetAssetCategoriesAsync()
 {
     return(_assetsService.AssetCategoryGetAllAsync());
 }
Пример #3
0
        public async Task <IActionResult> GetAssetCategories()
        {
            var res = await _assetsService.AssetCategoryGetAllAsync();

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