public IActionResult SetGameVariant(int playerId, string variant) { try { GamesVariants outVariant; Enum.TryParse <GamesVariants>(variant, out outVariant); _playTableService.SetGameVariant(playerId, outVariant); return(Ok()); } catch (AppException ex) { return(BadRequest(new { message = ex.Message })); } }