예제 #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())));
        }