public IActionResult StartGame(int id) { try { bool canRun = _playTableService.StartNewRound(id); if (canRun) { return(Ok(canRun)); } } catch (AppException ex) { return(BadRequest(new { message = ex.Message })); } return(Forbid()); }
public IActionResult StartGame(int id) { try { bool canRun = _playTableService.StartNewRound(id); if (canRun) { return(Ok(canRun)); } } catch (AppException ex) { return(BadRequest(new { message = ex.Message })); } return(Forbid()); }