public ActionResult Push() { string source = Request.QueryString["source"].ToString().ToLower(); bizPushInfoType bpt=new bizPushInfoType(); List<PushInfoType> listType = bpt.ListByTypeSource(source); return View(listType); }
public ActionResult PushType(int id) { string source = Request.QueryString["source"].ToString().ToLower(); bizPushInfoType bpt = new bizPushInfoType(); List<PushInfoType> list = bpt.ListByTypeSource(source); ViewData["ID"] = id; return View(list); }
public ActionResult Push(int id) { string source = Request.QueryString["source"].ToString(); ViewData["id"] = id; ViewData["source"] = source; if (source == "bbs") { BBSMain modelBBS = (new bizBBSMain()).Get(id); ViewData["Title"] = modelBBS.Title; ViewData["Url"] = "/bbs/"+ modelBBS.BBSMainID +".html"; } if (source == "news") { News modelNews = (new bizNews()).Get(id); ViewData["Title"] = modelNews.Title; ViewData["Url"] = "/news/detail/" + modelNews.NewsID + "_1.html"; } bizPushInfoType bp = new bizPushInfoType(); List<PushInfoType> list = bp.ListByTypeSource(source); return View(list); }
public ActionResult PushList(int id) { string source = Request.QueryString["source"].ToString(); bizPushInfoType bpt = new bizPushInfoType(); bizPushInfo bp = new bizPushInfo(); PushInfoType model = bpt.Get(id); ViewData["listType"] = bpt.ListByTypeSource(model.TypeSource); ViewData["Type"] = model; ViewData["id"] = id; ViewData["source"] = source; List<PushInfo> listInfo = bp.ListByTypeID(id, 10); return View(listInfo); }