public async Task <IActionResult> Delete(int id) // Delete Tournament
        {
            ServiceResponse <List <GetTournamentDto> > response = await _tournamentService.DeleteTournament(id);

            if (response.Data == null)
            {
                return(NotFound(response));
            }
            return(Ok(response));
        }
 public ActionResult Delete(int id)
 {
     _tournamentService.DeleteTournament(id);
     return(NoContent());
 }
Exemple #3
0
        public ActionResult DeleteTournament(int id)
        {
            _tournamentService.DeleteTournament(id);

            return(RedirectToAction("TournamentManager", "Tournament"));
        }