public ActionResult getProducts(int id, int category) { if (category == 1) { mainCategoryRepository.Get(id); return(View(mainCategoryRepository)); } else if (category == 2) { SubCategory.Get(id); return(View(SubCategory)); } else { FinalSub.Get(id); return(View(FinalSub)); } }
public ActionResult getProducts(int id, int category) { Session["admin"] = null; Session["adminLoginID"] = null; Session["adminUserName"] = null; Session["paymentmethod"] = null; if (category == 1) { mainCategoryRepository.Get(id); return(View(mainCategoryRepository)); } else if (category == 2) { subCategoryRepository.Get(id); return(View(subCategoryRepository)); } else { finalSubCategoryRepository.Get(id); return(View(finalSubCategoryRepository)); } }
public ActionResult saleProducts(int id) { return(View(MainCategoryrepo.Get(id))); }