public ActionResult AddDownloadNum(int id)//HttpContext context { ToolDownloadBLL toolDownloadBLL = new ToolDownloadBLL(); int num = toolDownloadBLL.AddDownloadNum(id); return(Json(new { success = true, num = num }, JsonRequestBehavior.AllowGet)); }
public ActionResult Detele(int id) { ToolDownloadBLL toolDownloadBLL = new ToolDownloadBLL(); bool b = toolDownloadBLL.DeteleTool(id); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetToolById(int id) { ToolDownloadBLL toolDownloadBLL = new ToolDownloadBLL(); var model = toolDownloadBLL.GetToolById(id); return(Json(new { success = true, models = model }, JsonRequestBehavior.AllowGet)); }
public ActionResult Save(ToolDownloadInfo toolDownloadInfo) { ToolDownloadBLL toolDownloadBLL = new ToolDownloadBLL(); bool b = toolDownloadBLL.SaveTool(toolDownloadInfo); return(Json(new { success = b }, JsonRequestBehavior.AllowGet)); }
public ActionResult SearchTool(ToolDownloadInfo toolDownloadInfo) { toolDownloadInfo.page = int.Parse(Request["page"]); toolDownloadInfo.rows = int.Parse(Request["rows"]); ToolDownloadList toolDownloadList = new ToolDownloadList(); ToolDownloadBLL toolDownloadBLL = new ToolDownloadBLL(); toolDownloadList = toolDownloadBLL.getToolDownloadList(toolDownloadInfo); return(Json(toolDownloadList, JsonRequestBehavior.AllowGet)); }