Beispiel #1
0
 public async Task <ActionResult <MatchDto> > Delete(int id)
 {
     try
     {
         return(await _matchService.Delete(id));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
 public ActionResult DeleteMatch(int id)
 {
     matchesService.Delete(id);
     pointsCalculator.CalculatePoints();
     return(RedirectToAction("Index"));
 }