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