Skip to content

Commit

Permalink
Update GamesController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaughnAnderson94 authored Jul 1, 2024
1 parent 4f0336d commit 2fb4209
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Solution/testapi/Controllers/GamesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ public class GamesController : ControllerBase



private readonly ILogger<GamesController> _logger;
private readonly GamesDbContext _context;
private readonly iGamesDbContext _context;

public GamesController(iGamesDbContext context)

public GamesController(GamesDbContext context, ILogger<GamesController> logger)
{
_context = context;
_logger = logger;
if (!_context.Games.Any())
{
_context.Games.AddRange(new List<Game>
Expand Down

0 comments on commit 2fb4209

Please sign in to comment.