コード例 #1
0
        public ActionResult SaveISP(ISPViewModel model)
        {
            var response = svc.SaveISP(model.ISP);

            ViewBag.Response = response.Message;

            return(RedirectToAction("ISPs"));
        }
コード例 #2
0
        public ActionResult ISP(int ispId)
        {
            var model = new ISPViewModel {
                ISP = svc.GetISP(ispId)
            };

            return(View(model));
        }