public VendorManufacturer() { this.Bvin = string.Empty; this.LastUpdated = DateTime.UtcNow; this.DisplayName = string.Empty; this.EmailAddress = string.Empty; this.Address = new Contacts.Address(); this.DropShipEmailTemplateId = string.Empty; this.Contacts = new List <VendorManufacturerContact>(); this.ContactType = VendorManufacturerType.Unknown; }
public VendorManufacturer() { this.Bvin = string.Empty; this.LastUpdated = DateTime.UtcNow; this.DisplayName = string.Empty; this.EmailAddress = string.Empty; this.Address = new Contacts.Address(); this.DropShipEmailTemplateId = string.Empty; this.Contacts = new List<VendorManufacturerContact>(); this.ContactType = VendorManufacturerType.Unknown; }
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); }