From 50ce8a61b1e69a28e41e26d880f81ee789158eb5 Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Tue, 2 May 2023 13:59:21 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B0=D0=BA=D0=B6=D0=B5=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=88=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=BC=20=D0=BF=D1=83=D0=BB=D1=8B=20=D0=B8=D1=81=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D1=8F=D1=82=D1=8C=20:=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JewelryStoreRestApi/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JewelryStoreRestApi/Program.cs b/JewelryStoreRestApi/Program.cs index db22cef..bda72b2 100644 --- a/JewelryStoreRestApi/Program.cs +++ b/JewelryStoreRestApi/Program.cs @@ -20,7 +20,7 @@ builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); -builder.Services.AddTransient(); +builder.Services.AddSingleton(); builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle