public override ActionResult Index() { var categoryListResult = ProductCategoryService.ListAllByBranch <LanguageProductCategoryDto>(SmsCache.UserContext.CurrentBranchId); if (!categoryListResult.Success || categoryListResult.Data == null) { return(ErrorPage(categoryListResult.Errors)); } var unitListResult = UnitService.ListAllByBranch <LanguageUnitDto>(SmsCache.UserContext.CurrentBranchId); if (!unitListResult.Success || unitListResult.Data == null) { return(ErrorPage(unitListResult.Errors)); } ViewBag.ListCategory = categoryListResult.Data; ViewBag.ListUnit = unitListResult.Data; return(base.Index()); }