// PUT: api/TournamentApi/5 public TournamentDto PutTournament(DomainModelTournament domainModelTournament) { var tournament = new Facade().GetTournamentRepository().Update(domainModelTournament); return new TournamentDtoConverter().Convert(tournament); }
// POST: api/TournamentApi public void PostTournament(DomainModelTournament domainModelTournament) { new Facade().GetTournamentRepository().Create(domainModelTournament); }