示例#1
0
        public ActionResult GetOtherPageById(int id)
        {
            OtherPageBLL otherPageBLL = new OtherPageBLL();
            var          model        = otherPageBLL.GetOtherPageById(id);

            return(Json(new { success = true, models = model }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult Save(OtherPageInfo mode)
        {
            OtherPageBLL otherPageBLL = new OtherPageBLL();
            bool         b            = otherPageBLL.SaveOtherPage(mode);

            return(Json(new { success = b }, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        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));
        }
示例#4
0
        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));
        }