public async Task <List <tblSubCategory> > GetSubCategories() { List <tblSubCategory> uList = new List <tblSubCategory>(); uList = await subCategoryRepository.GetAll(); return(uList); }
public IHttpActionResult NavBar() { CategoryViewModel categoryViewModel = new CategoryViewModel(); categoryViewModel.mainCategories = mainCategoryRepository.GetAll(); categoryViewModel.subCatetories = subCategoryRepository.GetAll(); categoryViewModel.finalSubCategories = finalSubCategoryRepository.GetAll(); return(Ok(mainCategoryRepository.GetAll())); }
public ActionResult AdminNavbar() { MainCategoryRepository mainCategoryRepository = new MainCategoryRepository(); SubCategoryRepository subCategoryRepository = new SubCategoryRepository(); FinalSubCategoryRepository finalSubCategoryRepository = new FinalSubCategoryRepository(); CategoryViewModel categoryViewModel = new CategoryViewModel(); categoryViewModel.mainCategories = mainCategoryRepository.GetAll(); categoryViewModel.subCatetories = subCategoryRepository.GetAll(); categoryViewModel.finalSubCategories = finalSubCategoryRepository.GetAll(); return(PartialView("_AdminNavbar", categoryViewModel)); }
public ICollection <SubCategory> GetAll() { return(_subCategoryRepository.GetAll()); }
public List <SubCategory> GetAll() { var var = _Repository.GetAll(); return(var); }
public List <SubCategory> GetAll() { return(repository.GetAll()); }
// GET: Admin/SubCategory public ActionResult Index() { return(View(altKategoriRepo.GetAll())); }