Beispiel #1
0
 // GET: /Admin/Category/
 public ActionResult Index()
 {
     //TempData["Success"] = "Inserted Successfully.";
     if (TempData["Success"] != null)
     {
         TempData["Success"] = TempData["Success"];
     }
     if (TempData["Error"] != null)
     {
         TempData["Error"] = TempData["Error"];
     }
     return(View(objCategoryBO.GetCategories()));
 }
Beispiel #2
0
 // GET: /Admin/SubCategory/
 public ActionResult Index()
 {
     ViewBag.CategoryId = new SelectList(objCartegoryBO.GetCategories(true), "PKCategoryId", "CategoryName");
     return(View(objSubCategoryBO.GetSubCategories()));
 }
Beispiel #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()));
 }