Ejemplo n.º 1
0
        public ActionResult Create(Func1Input func1Input)
        {
            if (ModelState.IsValid)
            {
                return(RedirectToAction("Index", func1Input));
            }

            return(View(func1Input));
        }
Ejemplo n.º 2
0
        // GET: func1_Result
        public ActionResult Index(Func1Input func1Input)
        {
            if (string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.User.Identity.Name))
            {
                return(View(new List <func1_Result>()));
            }
            List <func1_Result> res = db.func1(func1Input.Section, func1Input.Group, func1Input.Sex, func1Input.BirthDate, func1Input.Age).ToList();

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