public ActionResult GetOtherPageById(int id) { OtherPageBLL otherPageBLL = new OtherPageBLL(); var model = otherPageBLL.GetOtherPageById(id); return(Json(new { success = true, models = model }, JsonRequestBehavior.AllowGet)); }
public ActionResult Save(OtherPageInfo mode) { OtherPageBLL otherPageBLL = new OtherPageBLL(); bool b = otherPageBLL.SaveOtherPage(mode); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(int id, string fileName) { OtherPageBLL otherPageBLL = new OtherPageBLL(); bool b = otherPageBLL.DeteleOtherPage(id); string PhysicalPath = Server.MapPath("/OtherData/"); deleteFile(PhysicalPath + fileName); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult SearchOtherPage(OtherPageInfo model) { model.page = int.Parse(Request["page"]); model.rows = int.Parse(Request["rows"]); OtherPageBLL otherPageBLL = new OtherPageBLL(); OtherPageList list = otherPageBLL.getList(model); return(Json(list, JsonRequestBehavior.AllowGet)); }