示例#1
0
 // GET: /Admin/SubCategory/
 public ActionResult Index()
 {
     ViewBag.CategoryId = new SelectList(objCartegoryBO.GetCategories(true), "PKCategoryId", "CategoryName");
     return(View(objSubCategoryBO.GetSubCategories()));
 }
示例#2
0
 public ActionResult GetSubCategory(int categoryId, string categoryName)
 {
     ViewBag.CategoryName = categoryName;
     ViewBag.CategoryId   = categoryId;
     return(View(objSubCategoryBO.GetSubCategories(categoryId)));
 }
示例#3
0
 // 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()));
 }