c#Microsoft.Extensions.Configuration.AzureKeyVault
c#Azure.Extensions.AspNetCore.Configuration.Secrets
[HttpGet] public async Task<ActionResult<IEnumerable<Game>>> GetGame() { if (_context.Game == null) { return NotFound(); } return await _context.Game.ToListAsync(); }
routes.MapGet("/api/Game", async (GamesTestAPIContext db) => { return await db.Game.ToListAsync(); }) .WithName("GetAllGames") .Produces<List<Game>>(StatusCodes.Status200OK);