public async Task <IActionResult> Delete(Guid gameId) { if (!await CheckTeamId(gameId)) { return(StatusCode(403)); } var deletedRound = await scoreboardService.DeleteLastRound(gameId); if (deletedRound != null) { await hub.Clients.Group(gameId.ToString()).SendAsync("deleteLastRound", deletedRound); return(NoContent()); } else { throw new RoundNotExistsException("No round to delete!"); } }