Example #1
0
 public ActionResult PushMod(int id, FormCollection f)
 {
     string source = Request.QueryString["source"].ToString();
     bizPushInfoType bpt = new bizPushInfoType();
     bizPushInfo bp = new bizPushInfo();
     PushInfo model = bp.Get(id);
     model.Attach();
     model.Title = f["title"].Trim();
     model.TitleUrl = f["titleurl"].Trim();
     model.Remark = f["remark"].Trim();
     model.Detach();
     bp.Update(model);
     return Redirect("/bbs/pushlist/" + model.PushInfoTypeID + ".html?bbsMainID=" + Request.QueryString["bbsMainID"].ToString() + "&source="+source);
 }
Example #2
0
 public ActionResult PushMod(int id)
 {
     string source = Request.QueryString["source"].ToString();
     bizPushInfoType bpt = new bizPushInfoType();
     bizPushInfo bp = new bizPushInfo();
     PushInfo model = bp.Get(id);
     PushInfoType modelType = bpt.Get(model.PushInfoTypeID);
     ViewData["modelType"] = modelType;
     ViewData["source"] = source;
     return View(model);
 }