Example #1
0
        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));
        }
Example #4
0
 public ICollection <SubCategory> GetAll()
 {
     return(_subCategoryRepository.GetAll());
 }
        public List <SubCategory> GetAll()
        {
            var var = _Repository.GetAll();

            return(var);
        }
Example #6
0
 public List <SubCategory> GetAll()
 {
     return(repository.GetAll());
 }
 // GET: Admin/SubCategory
 public ActionResult Index()
 {
     return(View(altKategoriRepo.GetAll()));
 }