From 3b97965b6e2e86a2d9092879ea621daa6165b28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D0=B0?= Date: Fri, 31 May 2024 20:57:47 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- University/UniversityClientApp/Controllers/HomeController.cs | 1 + University/UniversityClientApp/Program.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/University/UniversityClientApp/Controllers/HomeController.cs b/University/UniversityClientApp/Controllers/HomeController.cs index 8fe5be7..dd73d61 100644 --- a/University/UniversityClientApp/Controllers/HomeController.cs +++ b/University/UniversityClientApp/Controllers/HomeController.cs @@ -36,6 +36,7 @@ namespace UniversityClientApp.Controllers { return View(); } + private ClientViewModel Client { get diff --git a/University/UniversityClientApp/Program.cs b/University/UniversityClientApp/Program.cs index 8ff968c..61f1d94 100644 --- a/University/UniversityClientApp/Program.cs +++ b/University/UniversityClientApp/Program.cs @@ -15,10 +15,10 @@ var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllersWithViews(); builder.Services.AddSession(); // Добавляем сессию для авторизации - builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); +builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient();