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