public GetGameStateResponse Get(GetGameState request) { var game = Cache.Get <CardGame>(request.GameId); if (game == null) { throw HttpError.NotFound("Game not found"); } return(new GetGameStateResponse { Game = game }); }
public GetGameStateResponse Get(GetGameState request) { var game = Cache.Get<CardGame>(request.GameId); if (game == null) throw HttpError.NotFound("Game not found"); return new GetGameStateResponse { Game = game }; }