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); }
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); }