Example #1
0
        // GET /HOME/ABOUT
        public IActionResult About()
        {
            ViewData["Message"] = "Here is a person";
            var p = new Person() {
                FristName = "FF",
                LastName = "LL",
                Birthdate = new DateTime(2000, 01, 01)
            };

            return View(p);
        }
Example #2
0
        public IActionResult About(Person personIn)
        {
            // DO SOME STUFF

           return View(personIn);
        }