public CustomerInfo(Customer cus) { GetCustomerInfo(cus); }
public void GetCustomerInfo(Customer cus) { if (cus != null) { this.Address = cus.Address; this.BirthDate = cus.BirthDate; this.CustomerDescription = cus.CustomerDescription; this.CustomerId = cus.CustomerId; this.CustomerType = cus.CustomerType; this.DealerCode = cus.DealerCode; this.DistrictId = cus.DistrictId; this.Email = cus.Email; this.ForService = cus.ForService; this.FullName = cus.FullName; this.Gender = cus.Gender; this.IdentifyNumber = cus.IdentifyNumber; this.JobTypeId = cus.JobTypeId; this.Mobile = cus.Mobile; this.Precinct = cus.Precinct; this.Priority = cus.Priority; this.ProvinceId = cus.ProvinceId; this.Tel = cus.Tel; } }