コード例 #1
0
ファイル: Case.cs プロジェクト: Cognite-Soft/ARB_2016_V2
        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;
        }
コード例 #2
0
 private static CaseArchitectContact GetArchitectContact(ArchitectContact contact)
 {
     return new CaseArchitectContact()
     {
         Address = contact.Address,
         EMail = contact.EMail,
         Name = contact.Name,
         Phone = contact.Phone,
         RegistrationNumber = contact.RegistrationNumber,
     };
 }