Esempio n. 1
0
 public ActionResult <Tournament> Delete(int id)
 {
     try
     {
         Match match = _matchService.GetMatchById(id);
         return(Ok(_matchService.DeleteMatch(match)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
 public async Task <IActionResult> DeleteMatch(int id)
 {
     return(Ok(await _service.DeleteMatch(id)));
 }
Esempio n. 3
0
        public async Task <IActionResult> Delete([FromRoute] string matchId)
        {
            var match = await _matchService.DeleteMatch(matchId);

            return(Json(match));
        }