Exemplo n.º 1
0
        public ActionResult GetFootLinkById(int id)
        {
            FootLinkBLL bll   = new FootLinkBLL();
            var         model = bll.GetFootLinkById(id);

            return(Json(new { success = true, models = model }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult Save(FootLinkViewModel mode)
        {
            FootLinkBLL bll = new FootLinkBLL();
            bool        b   = bll.SaveFootLink(mode);

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