public ActionResult GetFootLinkById(int id) { FootLinkBLL bll = new FootLinkBLL(); var model = bll.GetFootLinkById(id); return(Json(new { success = true, models = model }, JsonRequestBehavior.AllowGet)); }
public ActionResult Save(FootLinkViewModel mode) { FootLinkBLL bll = new FootLinkBLL(); bool b = bll.SaveFootLink(mode); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(int id, string fileName) { FootLinkBLL bll = new FootLinkBLL(); bool b = bll.DeteleFootLink(id); string PhysicalPath = Server.MapPath("/FootLink/"); deleteFile(PhysicalPath + fileName); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult SearchFootLink(FootLinkViewModel model) { model.page = int.Parse(Request["page"]); model.rows = int.Parse(Request["rows"]); FootLinkBLL footbll = new FootLinkBLL(); FootLinkList list = footbll.getList(model); return(Json(list, JsonRequestBehavior.AllowGet)); }