Exemple #1
0
        public ActionResult Edit(int id)
        {
            Person  mentee      = PersonHelper.GetPersonById(ref this._db, id);
            Address homeAddress = AddressHelper.GetAddressByPersonAndType(ref this._db, mentee.id, "Home");

            MenteeViewModel viewModel = new MenteeViewModel
            {
                Mentee      = mentee,
                HomeAddress = homeAddress
            };

            return(View(viewModel));
        }