From 9ffaf27ca31d60f999cc4261d6cda711bd90e25e Mon Sep 17 00:00:00 2001 From: Drew Rautenberg Date: Wed, 8 Jan 2025 18:13:31 -0600 Subject: [PATCH] stuff --- barkmanAPI/Program.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/barkmanAPI/Program.cs b/barkmanAPI/Program.cs index 9a5a67d..3db11ec 100644 --- a/barkmanAPI/Program.cs +++ b/barkmanAPI/Program.cs @@ -4,7 +4,7 @@ using Microsoft.OpenApi.Models; var builder = WebApplication.CreateBuilder(args); -builder.Services.AddDbContext(); +builder.Services.AddDbContext(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(c => { @@ -24,11 +24,11 @@ if (app.Environment.IsDevelopment()) app.MapGet("/", () => "Hello World!"); -app.MapGet("/inventory", async (InventoryContext dbContext) => -{ - var inventoryItems = await dbContext.Set().ToListAsync(); - return Results.Ok(inventoryItems); -}); +// app.MapGet("/inventory", async (InventoryItems dbContext) => +// { +// var inventoryItems = await dbContext.Set().ToListAsync(); +// return Results.Ok(inventoryItems); +// }); //app.MapGet("/inventory/{id}", (int id) => InventoryDb.GetInventory(id)); //app.MapPut("/inventory", (InventoryItem item) => InventoryDb.UpdateItem(item));