コード例 #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;

            }
        }
コード例 #2
0
ファイル: ModelFactory.cs プロジェクト: shturner20/EContact
        public ContactEmailModel Create(ContactEmail contactEmail)
        {
            var result = new ContactEmailModel()
            {
                Type = contactEmail.Type,
                EmailAddress = contactEmail.EmailAddress
            };

            return result;
        }