public ActionResult JsonAction() { Person person = new Person { FirstName = "Fernando", LastName = "Alonso", DateOfBirth = DateTime.Parse("1981-07-29") }; return Json(person,JsonRequestBehavior.AllowGet); }
public ActionResult Temp() { Person person = new Person { FirstName = "Fernando", LastName = "Alonso", DateOfBirth = DateTime.Parse("1981-07-29") }; return View("Details",person); }
public ActionResult Details() { ViewData["team"] = "Ferrari"; ViewBag.Country = "Spain"; TempData["points"] = 207; Person person = new Person { FirstName = "Fernando", LastName = "Alonso", DateOfBirth = DateTime.Parse("1981-07-29") }; return View(person); }