public Models.Person Build() { var person = new Models.Person(FirstNameState.Get(), LastNameState.Get()); foreach (var contact in Contacts) { person.Add(contact); } person.SetPrimaryContact(PrimaryContact.Get()); return(person); }
public Models.Person Build() { Models.Person person = new Models.Person(this.FirstName, this.LastName); foreach (IContactInfo contact in this.Contacts) { person.Add(contact); } person.SetPrimaryContact(this.PrimaryContact); return(person); }