public ActionResult ViewSchoolNews(int id) { if (id > 0) { var model = new SchoolNewsService().GetSchoolNews(id); return(View(model)); } return(View()); }
public JsonResult SchoolNewssByPaging(DataTablesPaging request) { var view = new SchoolNewsService().GetSchoolNewssByPaging(request); return(Json(view, JsonRequestBehavior.AllowGet)); }
public JsonResult SchoolNewss() { var items = new SchoolNewsService().GetSchoolNewss(); return(Json(items, JsonRequestBehavior.AllowGet)); }