Beispiel #1
0
 public ActionResult GetChildCategory(int id)
 {
     CategoryService ser = new CategoryService();
     var category = ser.GetChildCategory(id);
     return View(category);
 }
Beispiel #2
0
 public ActionResult GetAllCategory()
 {
     CategoryService ser = new CategoryService();
     var category = ser.GetAllCategory();
     return Json(category, JsonRequestBehavior.AllowGet);
 }