예제 #1
0
        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));
        }
예제 #2
0
 public ActionResult Delete(int id)
 {
     _tournamentService.DeleteTournament(id);
     return(NoContent());
 }
예제 #3
0
        public ActionResult DeleteTournament(int id)
        {
            _tournamentService.DeleteTournament(id);

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