public Match UpdateMatch(DateTime matchDate, TimeSpan time, Venue venue, CompetitionMatchType matchType, Competition competition, Team homeTeam, Team awayTeam)
 {
     return matchViewContext.UpdateMatch(matchDate, time, venue, matchType, competition, homeTeam, awayTeam);
 }
 public List<Match> GetMatchesByTeam(Team team)
 {
     return matchViewContext.GetMatchesByTeam(team);
 }
 private List<MatchPlayer> loadTeamPlayers(Match match, Team team)
 {
     return context.MatchPlayers
         .Where(mp => mp.Match.MatchDate == match.MatchDate && mp.Match.MatchTime == match.MatchTime
         && mp.Match.Venue == match.Venue && (mp.Match.AwayTeam == team || mp.Match.HomeTeam == team))
         .ToList();
 }
 private void loadMatchDetails(Team homeTeam, Team awayTeam)
 {
     // TODO
 }
 public Team DeleteTeam(Team team)
 {
     throw new NotImplementedException();
 }
 public Team UpdateTeam(Team team, string name)
 {
     throw new NotImplementedException();
 }