Пример #1
0
        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));
        }
Пример #2
0
        public ActionResult Update()
        {
            if (MyFamily == null)
            {
                MyFamily = new FamilyBackend();
            }

            var Rando = new PersonModel();

            return(View(Rando));
        }