Пример #1
0
 public MatchDependency Create(MatchDependency matchDependency)
 {
     _matchDependencyRepository.Insert(matchDependency);
     _dbContext.SaveChanges();
     return(matchDependency);
 }
Пример #2
0
 public Match Create(Match match)
 {
     _matchRepository.Insert(match);
     _dbContext.SaveChanges();
     return(match);
 }
 public Tournament Create(Tournament tournament)
 {
     _tournamentRepository.Insert(tournament);
     _dbContext.SaveChanges();
     return(tournament);
 }
 public Player Create(Player player)
 {
     _playerRepository.Insert(player);
     _dbContext.SaveChanges();
     return(player);
 }
 public Draw Create(Draw draw)
 {
     _drawRepository.Insert(draw);
     _dbContext.SaveChanges();
     return(draw);
 }