public ActionResult AddDetail(string detail) { var model = PersonRepo.CurrentPerson(); model.Details.Add(detail); return(View("Index", model)); }
// GET: Person public ActionResult Index() { //return "Hello from controller!"; var model = PersonRepo.CurrentPerson(); return(View("Index", model)); }