Exemple #1
0
 // GET: /Admin/SubCategory/
 public ActionResult Index()
 {
     ViewBag.CategoryId = new SelectList(objCartegoryBO.GetCategories(true), "PKCategoryId", "CategoryName");
     return(View(objSubCategoryBO.GetSubCategories()));
 }
Exemple #2
0
 public ActionResult GetSubCategory(int categoryId, string categoryName)
 {
     ViewBag.CategoryName = categoryName;
     ViewBag.CategoryId   = categoryId;
     return(View(objSubCategoryBO.GetSubCategories(categoryId)));
 }
 // GET: /Admin/Product/
 public ActionResult Index()
 {
     ViewBag.Category    = new SelectList(objCategoryBO.GetCategories(true), "PKCategoryId", "CategoryName");
     ViewBag.SubCategory = new SelectList(objSubCategoryBO.GetSubCategories(0, true), "PKSubCategoryId", "SubCategoryName");
     return(View(objProductBO.GetProducts()));
 }