public Domain.Contact ConvertToSource(ContactModel model) { return new Domain.Contact { Address = model.Address1, Address1 = model.Address2, Phone = new Phone {Home = model.Phone.Home, Mobile = model.Phone.Mobile, Work = model.Phone.Work}, ZipCode = model.ZipCode, Social = new Social { Facebook = model.Social.Facebook, Twitter = model.Social.Twitter } }; }
public PatientEditModel() { Contact = new ContactModel(); Profile = new ProfileModel(); CurrentAgent = string.IsNullOrEmpty(CurrentAgent) ? HttpContext.Current.User.Identity.Name : CurrentAgent; }