private void AddTeam_Clicked(object sender, RoutedEventArgs e)
        {
            var addTeamWindow = new AddTeamWindow(false);
            var windowRes     = addTeamWindow.ShowDialog();

            Trace.WriteLine(windowRes);
            if (windowRes.HasValue && !windowRes.Value)
            {
                Trace.WriteLine("We did not press the add button");
                return;
            }

            if (addTeamWindow.Team == null)
            {
                Trace.WriteLine("Team is null");
                return;
            }

            if (addTeamWindow.Coach == null)
            {
                Trace.WriteLine("Coach is null");
                return;
            }

            _teamService.Add(addTeamWindow.Team);
            _personService.Add(addTeamWindow.Coach);
            Teams.Add(addTeamWindow.Team);
        }
        private void EditTeamBtn_Click(object sender, RoutedEventArgs e)
        {
            var team = (Team)TeamList.SelectedItem;

            if (team == null)
            {
                return;
            }

            var coach    = _personService.FindCoachById(team.CoachId);
            var players  = team.PlayerIds.Select(teamPersonId => _personService.FindPlayerById(teamPersonId));
            var playerOc = new ObservableCollection <Player>(players);

            var addTeamWindow = new AddTeamWindow(true)
            {
                TeamName       = team.Name,
                Team           = team,
                Players        = playerOc,
                Coach          = coach,
                PersonName     = coach.Name,
                PersonalNumber = coach.PersonalNumber,
                PhoneNumber    = coach.PhoneNumber,
                Email          = coach.Email
            };

            var addTeamResult = addTeamWindow.ShowDialog();

            if (!addTeamResult.HasValue)
            {
                return;
            }

            _teamService.Edit(addTeamWindow.Team, addTeamWindow.TeamName, addTeamWindow.Players, addTeamWindow.Coach);
            Teams.Remove(addTeamWindow.Team);
            Teams.Add(addTeamWindow.Team);
        }