private void UpdateCoach(DtoCoach source, Coach target) { target.FirstName = source.FirstName; target.LastName = source.LastName; target.City = source.City; target.State = source.State; target.City = source.City; target.Street = source.Street; }
private void CopyCoach(Coach source, DtoCoach target) { target.Id = source.Id; if (EditMode) { target.FirstName = source.FirstName; target.LastName = source.LastName; } }
public void SetCoach(Coach ar) { _editingCoach = ar; if (Coach != null) { Coach.ErrorsChanged -= RaiseCanExecuteChanged; } Coach = new DtoCoach(); Coach.ErrorsChanged += RaiseCanExecuteChanged; CopyCoach(ar, Coach); }