public PatientAddressViewModel(tAddress address) { CopyAddressProperties(address); CommandSavePatientAddress = new RelayCommand<object>((parameter) => SavePatientAddressData(parameter),(parameter)=>CanSave(parameter)); }
private void CopyAddressProperties(tAddress address) { PatientId = address.PatientId; Address1 = address.Address1; Address2 = address.Address2; PostalCode = address.PostalCode; City = address.City; }