public ActionResult Publicity() { ContentPageModel cp = new ContentPageModel(connectionString); List <ContentPage> contentpublicity = cp.GetContentPagePublicity("publicity"); ViewBag.contentPage = contentpublicity; return(View()); }
public JsonResult ListAll() { ContentPageModel cp = new ContentPageModel(connectionString); return(Json(cp.GetContentPagePublicity("publicity"))); }
public JsonResult GetPublicityById(int id) { ContentPageModel cp = new ContentPageModel(connectionString); return(Json(cp.GetContentPagePublicity("publicity").Find(p => p.id == id))); }