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 }));
        }
예제 #2
0
        public async Task <IActionResult> CountByThirdLevelCurrent()
        {
            var categories = await _assetService.CategoriesByThirdLevelAsync(it => it.StoredOrgIdentifier == _user.OrgIdentifier);

            return(AppResponse(categories));
        }