public Customer(CustomerImport customerImport) : this() { this.Email = customerImport.Email; this.Status = customerImport.Status; this.SaveDate = customerImport.SaveDate; this.UpdateDate = customerImport.UpdateDate; this.Addresses.AddRange(customerImport.Address); }
public Company(CustomerImport customerImport) : base(customerImport) { var company = customerImport as CompanyImport; this.CompanyName = company.CompanyName; this.TradeName = company.TradeName; this.Cnpj = company.CNPJ; this.Ie = company.IE; this.Im = company.IM; this.Type = CustomerType.Company; }
public Person(CustomerImport customerImport) : base(customerImport) { var person = customerImport as PersonImport; this.FirstName = person.FirstName; this.LastName = person.LastName; this.Cpf = person.CPF; this.Rg = person.RG; this.BirthDate = person.BirthDate; this.Gender = person.Gender; this.Type = CustomerType.Person; }