public EditPerson(int id, Person person) { Id = id; this.CreatePerson = new CreatePersonViewModel() { Name = person.Name, CityId = person.InCityId, Phone = person.Phone }; }
public PeopleViewModel() { CreatePersonViewModel = new CreatePersonViewModel(); PeopleList = new List <Person>(); }
public EditPerson(int id, CreatePersonViewModel createPerson) { Id = id; this.CreatePerson = createPerson; }