Beispiel #1
0
 public ActionResult List()
 {
     try
     {
         var result = _categoryBusiness.GetAll();
         return(View(result.OrderBy(x => x.Rank)));
     }
     catch (Exception)
     {
         return(View());
     }
 }
Beispiel #2
0
 public ActionResult Category()
 {
     try
     {
         var result = _productCategory.GetAll();
         return(PartialView(result));
     }
     catch (Exception)
     {
         return(PartialView());
     }
 }
Beispiel #3
0
 public ActionResult Add()
 {
     try
     {
         ViewBag.CategoryLst = _productCategoryBusiness.GetAll();
         return(View());
     }
     catch (Exception)
     {
         return(View());
     }
 }