public ActionResult Index() { if (MyFamily == null) { MyFamily = new FamilyBackend(); } var person1 = new PersonModel(); person1.FirstName = "Mike"; var person2 = new PersonModel(); person2.FirstName = "Doug"; var data = new PersonModelList { CurrentPerson = new PersonModel() }; data.PersonList.Add(person1); data.PersonList.Add(person2); data.PersonList.Add(data.CurrentPerson); return(View(data)); }
public ActionResult Update() { if (MyFamily == null) { MyFamily = new FamilyBackend(); } var Rando = new PersonModel(); return(View(Rando)); }