diff --git a/ComputersShop/ComputersShopBusinessLogic/MailWorker/AbstractMailWorker.cs b/ComputersShop/ComputersShopBusinessLogic/MailWorker/AbstractMailWorker.cs index 36fcf6d..0e4d351 100644 --- a/ComputersShop/ComputersShopBusinessLogic/MailWorker/AbstractMailWorker.cs +++ b/ComputersShop/ComputersShopBusinessLogic/MailWorker/AbstractMailWorker.cs @@ -19,6 +19,7 @@ namespace ComputersShopBusinessLogic.MailWorker protected string _popHost = string.Empty; protected int _popPort; private readonly IMessageInfoLogic _messageInfoLogic; + private readonly IClientLogic _clientLogic; private readonly ILogger _logger; public AbstractMailWorker(ILogger logger, IMessageInfoLogic messageInfoLogic) { @@ -75,6 +76,7 @@ namespace ComputersShopBusinessLogic.MailWorker _logger.LogDebug("Check Mail: {Count} new mails", list.Count); foreach (var mail in list) { + mail.ClientId = _clientLogic.ReadElement(new() { Email = mail.SenderName })?.Id; _messageInfoLogic.Create(mail); } } diff --git a/ComputersShop/ComputersShopView/DataGridViewExtension.cs b/ComputersShop/ComputersShopView/DataGridViewExtension.cs index 7662f2e..dfda2ed 100644 --- a/ComputersShop/ComputersShopView/DataGridViewExtension.cs +++ b/ComputersShop/ComputersShopView/DataGridViewExtension.cs @@ -26,7 +26,6 @@ namespace ComputersShopView { throw new InvalidOperationException($"Не найден атрибут типа ColumnAttribute для свойства {property.Name}"); } - // ищем нужный нам атрибут if (attribute is ColumnAttribute columnAttr) { column.HeaderText = columnAttr.Title; diff --git a/ComputersShop/ImplementationExtensions/ComputersShopContracts.dll b/ComputersShop/ImplementationExtensions/ComputersShopContracts.dll deleted file mode 100644 index b15538e..0000000 Binary files a/ComputersShop/ImplementationExtensions/ComputersShopContracts.dll and /dev/null differ diff --git a/ComputersShop/ImplementationExtensions/ComputersShopDataModels.dll b/ComputersShop/ImplementationExtensions/ComputersShopDataModels.dll deleted file mode 100644 index 9ef9317..0000000 Binary files a/ComputersShop/ImplementationExtensions/ComputersShopDataModels.dll and /dev/null differ diff --git a/ComputersShop/ImplementationExtensions/ComputersShopDatabaseImplement.dll b/ComputersShop/ImplementationExtensions/ComputersShopDatabaseImplement.dll deleted file mode 100644 index 9e8b2b6..0000000 Binary files a/ComputersShop/ImplementationExtensions/ComputersShopDatabaseImplement.dll and /dev/null differ diff --git a/ComputersShop/ImplementationExtensions/ComputersShopFileImplement.dll b/ComputersShop/ImplementationExtensions/ComputersShopFileImplement.dll deleted file mode 100644 index bca0afb..0000000 Binary files a/ComputersShop/ImplementationExtensions/ComputersShopFileImplement.dll and /dev/null differ diff --git a/ComputersShop/ImplementationExtensions/ComputersShopListImplement.dll b/ComputersShop/ImplementationExtensions/ComputersShopListImplement.dll deleted file mode 100644 index 700a554..0000000 Binary files a/ComputersShop/ImplementationExtensions/ComputersShopListImplement.dll and /dev/null differ