コード例 #1
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);
 }
コード例 #2
0
        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);
        }