public async Task <IActionResult> SecondaryAdminAssetCategories() { var categoriesByThirdLevel = await _assetService.CategoriesByThirdLevelAsync(it => it.OrganizationBelongedId == _user.OrgId); var categoriesByStatus = await _assetService.CategoriesByStatusAsync(it => it.OrganizationBelongedId == _user.OrgId); return(AppResponse(new { categoriesByStatus, categoriesByThirdLevel })); }
public async Task <IActionResult> CountByThirdLevelCurrent() { var categories = await _assetService.CategoriesByThirdLevelAsync(it => it.StoredOrgIdentifier == _user.OrgIdentifier); return(AppResponse(categories)); }