Esempio n. 1
0
        public ContactEmail Parse(ContactEmailModel model)
        {
            try
            {
                var contactEmail = new ContactEmail();

                contactEmail.Type = model.Type;
                contactEmail.EmailAddress = model.EmailAddress;

                return contactEmail;
            }
            catch (Exception)
            {
                return null;

            }
        }
Esempio n. 2
0
        public ContactEmailModel Create(ContactEmail contactEmail)
        {
            var result = new ContactEmailModel()
            {
                Type = contactEmail.Type,
                EmailAddress = contactEmail.EmailAddress
            };

            return result;
        }