private void CopySport(Sport source, DtoSport target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.Name = source.Name;
            }
        }
 public void SetSport(Sport ar)
 {
     _editingSport = ar;
     if (Sport != null)
     {
         Sport.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Sport = new DtoSport();
     Sport.ErrorsChanged += RaiseCanExecuteChanged;
     CopySport(ar, Sport);
 }
 private void UpdateSport(DtoSport source, Sport target)
 {
     target.Name = source.Name;
 }