public ActionResult Create(Func12Input func12Input) { if (ModelState.IsValid) { return(RedirectToAction("Index", func12Input)); } return(View(func12Input)); }
// GET: func12_Result public ActionResult Index(Func12Input func12Input) { if (string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.User.Identity.Name)) { return(View(new List <func12_Result>())); } var res = db.func12(func12Input.Section, func12Input.Group).ToList(); Response.AppendCookie(new HttpCookie("Data", JsonConvert.SerializeObject(res))); return(View(res)); }