diff --git a/AppWithOracleDb/OnlineShop/OnlineShop.ApiService/Program.cs b/AppWithOracleDb/OnlineShop/OnlineShop.ApiService/Program.cs index 84ff219..b538e93 100644 --- a/AppWithOracleDb/OnlineShop/OnlineShop.ApiService/Program.cs +++ b/AppWithOracleDb/OnlineShop/OnlineShop.ApiService/Program.cs @@ -128,10 +128,7 @@ if (app.Environment.IsDevelopment()) app.MapGet("/", () => "API service is running."); app.MapGet("/products", - ([FromServices] ProductsDbContext context) => - { - return context.Products.ToArray(); - }); + ([FromServices] ProductsDbContext context) => context.Products.ToArray()); app.MapDefaultEndpoints(); diff --git a/AppWithPostgresEf/OnlineShop/OnlineShop.ApiService/Program.cs b/AppWithPostgresEf/OnlineShop/OnlineShop.ApiService/Program.cs index 546c901..28d9fd2 100644 --- a/AppWithPostgresEf/OnlineShop/OnlineShop.ApiService/Program.cs +++ b/AppWithPostgresEf/OnlineShop/OnlineShop.ApiService/Program.cs @@ -128,10 +128,7 @@ if (app.Environment.IsDevelopment()) app.MapGet("/", () => "API service is running."); app.MapGet("/products", - ([FromServices] ProductsDbContext context) => - { - return context.Products.ToArray(); - }); + ([FromServices] ProductsDbContext context) => context.Products.ToArray()); app.MapDefaultEndpoints(); diff --git a/AspireOrchestratorEnrollment/PostEnrollmentApp/OnlineShop.ApiService/Program.cs b/AspireOrchestratorEnrollment/PostEnrollmentApp/OnlineShop.ApiService/Program.cs index 50415a8..4804a92 100644 --- a/AspireOrchestratorEnrollment/PostEnrollmentApp/OnlineShop.ApiService/Program.cs +++ b/AspireOrchestratorEnrollment/PostEnrollmentApp/OnlineShop.ApiService/Program.cs @@ -115,10 +115,7 @@ if (app.Environment.IsDevelopment()) app.MapGet("/", () => "API service is running."); app.MapGet("/products", - ([FromServices] ProductsDbContext context) => - { - return context.Products.ToArray(); - }); + ([FromServices] ProductsDbContext context) => context.Products.ToArray()); app.MapDefaultEndpoints(); diff --git a/AspireOrchestratorEnrollment/PreEnrollmentApp/OnlineShop.ApiService/Program.cs b/AspireOrchestratorEnrollment/PreEnrollmentApp/OnlineShop.ApiService/Program.cs index 45f8e06..015fa67 100644 --- a/AspireOrchestratorEnrollment/PreEnrollmentApp/OnlineShop.ApiService/Program.cs +++ b/AspireOrchestratorEnrollment/PreEnrollmentApp/OnlineShop.ApiService/Program.cs @@ -113,9 +113,6 @@ if (app.Environment.IsDevelopment()) app.MapGet("/", () => "API service is running."); app.MapGet("/products", - ([FromServices] ProductsDbContext context) => - { - return context.Products.ToArray(); - }); + ([FromServices] ProductsDbContext context) => context.Products.ToArray()); app.Run(); \ No newline at end of file