Пример #1
0
        public IActionResult About()
        {
            ViewData["Message"] = "Here is a person";
            var person = new Person()
            {
                FirstName = "Andre",
                LastName = "Roussakoff",
                Birthdate = new DateTime(1958, 4, 30)
            };

            return View(person); // assumes /home/about but we could pass another as a parameter
        }
Пример #2
0
        public IActionResult About(Person personIn)
        {
            // DO SOME STUFF

            return View(personIn);
        }