From 8322d3cab02a56038648bf496a310f717562c415 Mon Sep 17 00:00:00 2001 From: FLARJ <122087628+FLARJ@users.noreply.github.com> Date: Sat, 8 Apr 2023 22:24:51 +0400 Subject: [PATCH] fix --- .../BusinessLogic/ManagerLogic.cs | 2 +- .../BusinessLogic/OrderLogic.cs | 2 +- .../OfficePackage/AbstractSaveToWordManager.cs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/ManagerLogic.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/ManagerLogic.cs index 1aff3d4..acf955f 100644 --- a/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/ManagerLogic.cs +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/ManagerLogic.cs @@ -105,7 +105,7 @@ namespace FurnitureFactoryBusinessLogic.BusinessLogic { throw new ArgumentNullException("Не задано ФИО", nameof(model.UserName)); } - _logger.LogInformation("Student. Name:{Name}. Email{Email}.Login{Login} .Password{Password} Id: {Id}", model.UserName, model.Email, model.Login, model.Password, model.Id); + _logger.LogInformation("Manager. Name:{Name}. Email{Email}.Login{Login} .Password{Password} Id: {Id}", model.UserName, model.Email, model.Login, model.Password, model.Id); var element = _managerStorage.GetElement(new ManagerSearchModel { Login = model.Login diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/OrderLogic.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/OrderLogic.cs index 18529a7..c1f41d4 100644 --- a/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/OrderLogic.cs +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/BusinessLogic/OrderLogic.cs @@ -101,7 +101,7 @@ namespace FurnitureFactoryBusinessLogic.BusinessLogic } - _logger.LogInformation("Product. Titel:{Title}.Status{Status}.ManagerId:{ManagerId}. Id: {Id}", model.Title, model.Status, model.ManagerId, model.Id); + _logger.LogInformation("Order. Titel:{Title}.Status{Status}.ManagerId:{ManagerId}. Id: {Id}", model.Title, model.Status, model.ManagerId, model.Id); var element = _orderStorage.GetElement(new OrderSearchModel { Title = model.Title, diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/AbstractSaveToWordManager.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/AbstractSaveToWordManager.cs index 7afaa1b..97e823c 100644 --- a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/AbstractSaveToWordManager.cs +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/AbstractSaveToWordManager.cs @@ -24,22 +24,22 @@ namespace FurnitureFactoryBusinessLogic.OfficePackage } }); - foreach (var interest in info.SalesSalonsFurniture) + foreach (var salessalon in info.SalesSalonsFurniture) { CreateParagraph(new WordParagraph { - Texts = new List<(string, WordTextProperties)> { (interest.Name, new WordTextProperties { Size = "24", Bold = true, }) }, + Texts = new List<(string, WordTextProperties)> { (salessalon.Name, new WordTextProperties { Size = "24", Bold = true, }) }, TextProperties = new WordTextProperties { Size = "24", JustificationType = WordJustificationType.Both } }); - foreach (var lesson in interest.Furniture) + foreach (var furniture in salessalon.Furniture) { CreateParagraph(new WordParagraph { - Texts = new List<(string, WordTextProperties)> { (lesson, new WordTextProperties { Size = "20", Bold = false, }) }, + Texts = new List<(string, WordTextProperties)> { (furniture, new WordTextProperties { Size = "20", Bold = false, }) }, TextProperties = new WordTextProperties { Size = "24",