From 5bfe18358ba7681d1fa8b65076d408306549180c Mon Sep 17 00:00:00 2001 From: fiodarsazanavets Date: Tue, 16 Jun 2026 20:38:35 +0100 Subject: [PATCH] Update the code --- AppWithOracleDb/OnlineShop/OnlineShop.ApiService/Program.cs | 5 +---- .../OnlineShop/OnlineShop.ApiService/Program.cs | 5 +---- .../PostEnrollmentApp/OnlineShop.ApiService/Program.cs | 5 +---- .../PreEnrollmentApp/OnlineShop.ApiService/Program.cs | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) 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