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