private static GameResponse CheckGameState(Game game, GalleristComponentsDbContext galleristContext) { var gameResponse = new GameResponse { Game = game, Success = false, Message = "", Title = "" }; if (game == null || galleristContext == null) { gameResponse.Title = "Not Found"; gameResponse.Message = "Sorry but this does not appear to be a valid game."; gameResponse.Success = false; } //nothing bad happened else { gameResponse.Success = true; } return gameResponse; }
private static GameResponse CheckGameState(Game game, GalleristComponentsDbContext galleristContext) { var gameResponse = new GameResponse { Game = game, Success = false, Message = "", Title = "" }; if (game == null || galleristContext == null) { gameResponse.Title = "Not Found"; gameResponse.Message = "Sorry but this does not appear to be a valid game."; gameResponse.Success = false; } //nothing bad happened else { gameResponse.Success = true; } return(gameResponse); }