示例#1
0
 public async Task <IActionResult> Put(int id, MatchDto match)
 {
     try
     {
         await _matchService.Save(id, match);
     }
     catch (FluentValidationException ve)
     {
         return(ValidationError(ve));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
     return(NoContent());
 }