Exemple #1
0
        private static ArchitectContact MapArchitectContact(CaseArchitectContact contact)
        {
            var result = new ArchitectContact();

            if (contact != null)
            {
                result.Address = contact.Address;
                result.EMail = contact.EMail;
                result.Name = contact.Name;
                result.Phone = contact.Phone;
                result.RegistrationNumber = contact.RegistrationNumber ?? 0;
            }

            return result;
        }
 private static CaseArchitectContact GetArchitectContact(ArchitectContact contact)
 {
     return new CaseArchitectContact()
     {
         Address = contact.Address,
         EMail = contact.EMail,
         Name = contact.Name,
         Phone = contact.Phone,
         RegistrationNumber = contact.RegistrationNumber,
     };
 }