From 7a1eddbe513be81d81ecfff2624832b554dfabdc Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Thu, 26 Mar 2026 03:02:26 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=82=D0=B8=D0=BF=20=D0=BF=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D1=80=D0=B0=20fullname=20=D0=B2=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=D0=B5=20SearchEmployees=20=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B9=20=D0=BA=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8E=20=5Femployees?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Controllers/ScheduleController.cs | 2 +- SfeduSchedule/Services/ModeusEmployeeService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SfeduSchedule/Controllers/ScheduleController.cs b/SfeduSchedule/Controllers/ScheduleController.cs index 15c1110..540afb5 100644 --- a/SfeduSchedule/Controllers/ScheduleController.cs +++ b/SfeduSchedule/Controllers/ScheduleController.cs @@ -45,7 +45,7 @@ public class ScheduleController(ModeusService modeusService, ModeusEmployeeServi /// Сервис сотрудников не инициализирован [HttpGet] [Route("searchemployee")] - public async Task SearchEmployees(string fullname = "") + public async Task SearchEmployees(string? fullname) { if (!modeusEmployeeService.IsInitialized()) return StatusCode(503, "Сервис сотрудников не инициализирован, попробуйте позже."); diff --git a/SfeduSchedule/Services/ModeusEmployeeService.cs b/SfeduSchedule/Services/ModeusEmployeeService.cs index 34cabdf..0baa53f 100644 --- a/SfeduSchedule/Services/ModeusEmployeeService.cs +++ b/SfeduSchedule/Services/ModeusEmployeeService.cs @@ -6,7 +6,7 @@ namespace SfeduSchedule.Services; public class ModeusEmployeeService(ISchedulerFactory schedulerFactory) : IHostedService { - private Dictionary)> _employees = []; // + private Dictionary)> _employees = []; // ФИО (ИД, Список должностей) private Task? _backgroundTask; private CancellationTokenSource? _cts; private readonly string _employeesFilePath = Path.Combine(Path.Combine(AppContext.BaseDirectory, AppConsts.DataFolderName), AppConsts.EmployeesFileName);