Esempio n. 1
0
        public ActionResult Create(Func3Input func3Input)
        {
            if (ModelState.IsValid)
            {
                return(RedirectToAction("Index", func3Input));
            }

            return(View(func3Input));
        }
Esempio n. 2
0
        // GET: func3_Result
        public ActionResult Index(Func3Input func3Input)
        {
            if (string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.User.Identity.Name))
            {
                return(View(new List <func3_Result>()));
            }
            var res = db.func3(func3Input.Section).ToList();

            Response.AppendCookie(new HttpCookie("Data", JsonConvert.SerializeObject(res)));
            return(View(res));
        }