public ContactEmail Parse(ContactEmailModel model) { try { var contactEmail = new ContactEmail(); contactEmail.Type = model.Type; contactEmail.EmailAddress = model.EmailAddress; return contactEmail; } catch (Exception) { return null; } }
public ContactEmailModel Create(ContactEmail contactEmail) { var result = new ContactEmailModel() { Type = contactEmail.Type, EmailAddress = contactEmail.EmailAddress }; return result; }