From 1ac81839498a0758acc06ac16c9ce76435b44fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 11 Jul 2023 11:15:20 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudInfrastructure/Services/HelpPageService.cs | 3 +++ AsbCloudWebApi/Controllers/HelpPageController.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AsbCloudInfrastructure/Services/HelpPageService.cs b/AsbCloudInfrastructure/Services/HelpPageService.cs index 1f97312f..676c0cea 100644 --- a/AsbCloudInfrastructure/Services/HelpPageService.cs +++ b/AsbCloudInfrastructure/Services/HelpPageService.cs @@ -31,6 +31,9 @@ public class HelpPageService : IHelpPageService this.helpPageRepository = helpPageRepository; this.fileStorageRepository = fileStorageRepository; directoryNameHelpPageFiles = configuration.GetValue("DirectoryNameHelpPageFiles"); + + if (string.IsNullOrWhiteSpace(directoryNameHelpPageFiles)) + directoryNameHelpPageFiles = "helpPages"; } /// diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index c2b30acb..231047fe 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -33,7 +33,7 @@ public class HelpPageController : ControllerBase /// Загрузка файла справки /// /// Url страницы - /// Id категории файла + /// Id категории файла. Допустимое значение параметра: 20000 /// Файл справки /// Токен для отмены задачи ///