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