Пример #1
0
        public IActionResult Index()
        {
            var model = new SurveyData();
            model.Productivity = 3;
            model.Agility = 3;
            model.Spirit = 3;

            return View(model);
        }
Пример #2
0
        public IActionResult Index(SurveyData model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            this.SurveyLogic.Add(model, "username");

            return RedirectToAction("Index", "Home");
        }