public IActionResult Get(bool includeTables = false) { try { var results = _repository.GetAllGames(includeTables); return(Ok(_mapper.Map <IEnumerable <Game>, IEnumerable <GameViewModel> >(results))); } catch (Exception e) { _logger.LogError($"Failed to get games: {e}"); return(BadRequest("Failed to get all games")); } }