private void CopyGender(Gender source, DtoGender target) { target.Id = source.Id; if (EditMode) { target.Name = source.Name; } }
public void SetGender(Gender ar) { _editingGender = ar; if (Gender != null) { Gender.ErrorsChanged -= RaiseCanExecuteChanged; } Gender = new DtoGender(); Gender.ErrorsChanged += RaiseCanExecuteChanged; CopyGender(ar, Gender); }
private void UpdateGender(DtoGender source, Gender target) { target.Name = source.Name; }