예제 #1
0
        public void FromDto(VendorManufacturerDTO dto)
        {
            if (dto == null)
            {
                return;
            }

            this.Bvin         = dto.Bvin;
            this.LastUpdated  = dto.LastUpdated;
            this.DisplayName  = dto.DisplayName;
            this.EmailAddress = dto.EmailAddress;
            this.Address.FromDto(dto.Address);
            this.DropShipEmailTemplateId = dto.DropShipEmailTemplateId;
            this.Contacts.Clear();
            foreach (VendorManufacturerContactDTO c in dto.Contacts)
            {
                VendorManufacturerContact v = new VendorManufacturerContact();
                v.FromDto(c);
                this.Contacts.Add(v);
            }
            this.ContactType = (VendorManufacturerType)((int)dto.ContactType);
        }
예제 #2
0
        public void FromDto(VendorManufacturerDTO dto)
        {
            if (dto == null) return;

            this.Bvin = dto.Bvin;
            this.LastUpdated = dto.LastUpdated;
            this.DisplayName = dto.DisplayName;
            this.EmailAddress = dto.EmailAddress;
            this.Address.FromDto(dto.Address);
            this.DropShipEmailTemplateId = dto.DropShipEmailTemplateId;
            this.Contacts.Clear();
            foreach (VendorManufacturerContactDTO c in dto.Contacts)
            {
                VendorManufacturerContact v = new VendorManufacturerContact();
                v.FromDto(c);
                this.Contacts.Add(v);
            }
            this.ContactType = (VendorManufacturerType)((int)dto.ContactType);

        }