/* // Constructor parameterless - for saving if needed. public AutoRepairShopInfo() { } */ // Constructor - initialize property values from autoRepairWCF public AutoRepairShopInfo(AutoRepairDTO autoRepairDTO) { this.ID = autoRepairDTO.ID; this.Name = autoRepairDTO.Name; this.Address = autoRepairDTO.Address; this.City = autoRepairDTO.City; this.Phone = autoRepairDTO.Phone; this.Url = autoRepairDTO.Url; this.Geolocation = autoRepairDTO.Geolocation; }
private void TranslateAutoRepairDTOToAutoRepairWCF(AutoRepairDTO autoRepairDTO, AutoRepairWCF autoRepairWCF) { autoRepairWCF.ID = autoRepairDTO.ID; autoRepairWCF.Name = autoRepairDTO.Name; autoRepairWCF.Address = autoRepairDTO.Address; autoRepairWCF.City = autoRepairDTO.City; autoRepairWCF.Phone = autoRepairDTO.Phone; autoRepairWCF.Url = autoRepairDTO.Url; autoRepairWCF.Geolocation = autoRepairDTO.Geolocation; }