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();