From 908e02b8da4d415276aa7b2f4787aae628961cf1 Mon Sep 17 00:00:00 2001 From: devil_1nc Date: Mon, 22 May 2023 20:33:16 +0400 Subject: [PATCH] fix 5 --- .../BusinessLogic/OrderLogic.cs | 4 ++-- .../BindingModels/PackageBindingModel.cs | 4 ++-- .../ViewModels/PackageViewModel.cs | 2 +- .../Implements/SoftwareStorage.cs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SoftwareInstallation/AbstractSoftwareInstallationBusinessLogic/BusinessLogic/OrderLogic.cs b/SoftwareInstallation/AbstractSoftwareInstallationBusinessLogic/BusinessLogic/OrderLogic.cs index b9e9521..e10fa1b 100644 --- a/SoftwareInstallation/AbstractSoftwareInstallationBusinessLogic/BusinessLogic/OrderLogic.cs +++ b/SoftwareInstallation/AbstractSoftwareInstallationBusinessLogic/BusinessLogic/OrderLogic.cs @@ -65,7 +65,7 @@ namespace AbstractSoftwareInstallationBusinessLogic.BusinessLogic } model.Status = OrderStatus.Принят; model.DateCreate = DateTime.Now; - if (_orderStorage.Insert(model) == null) + if (_orderStorage.Insert(model) == null) { model.Status = OrderStatus.Неизвестен; _logger.LogWarning("Failed to insert order into a storage"); @@ -115,4 +115,4 @@ namespace AbstractSoftwareInstallationBusinessLogic.BusinessLogic return StatusUpdate(model, OrderStatus.Готов); } } -} \ No newline at end of file +} diff --git a/SoftwareInstallation/AbstractSoftwareInstallationContracts/BindingModels/PackageBindingModel.cs b/SoftwareInstallation/AbstractSoftwareInstallationContracts/BindingModels/PackageBindingModel.cs index de834db..a37e76f 100644 --- a/SoftwareInstallation/AbstractSoftwareInstallationContracts/BindingModels/PackageBindingModel.cs +++ b/SoftwareInstallation/AbstractSoftwareInstallationContracts/BindingModels/PackageBindingModel.cs @@ -12,7 +12,7 @@ namespace AbstractSoftwareInstallationContracts.BindingModels public int Id { get; set; } public string PackageName { get; set; } = string.Empty; public double Price { get; set; } - public Dictionary PackageSoftware{get;set;} = new(); + public Dictionary PackageSoftware { get; set; } = new(); } -} +} \ No newline at end of file diff --git a/SoftwareInstallation/AbstractSoftwareInstallationContracts/ViewModels/PackageViewModel.cs b/SoftwareInstallation/AbstractSoftwareInstallationContracts/ViewModels/PackageViewModel.cs index 6d92b1b..8b5a248 100644 --- a/SoftwareInstallation/AbstractSoftwareInstallationContracts/ViewModels/PackageViewModel.cs +++ b/SoftwareInstallation/AbstractSoftwareInstallationContracts/ViewModels/PackageViewModel.cs @@ -22,4 +22,4 @@ namespace AbstractSoftwareInstallationContracts.ViewModels } = new(); } -} \ No newline at end of file +} diff --git a/SoftwareInstallation/AbstractSoftwareInstallationListImplement/Implements/SoftwareStorage.cs b/SoftwareInstallation/AbstractSoftwareInstallationListImplement/Implements/SoftwareStorage.cs index df9682e..42e24b5 100644 --- a/SoftwareInstallation/AbstractSoftwareInstallationListImplement/Implements/SoftwareStorage.cs +++ b/SoftwareInstallation/AbstractSoftwareInstallationListImplement/Implements/SoftwareStorage.cs @@ -45,7 +45,7 @@ namespace AbstractSoftwareInstallationListImplement.Implements { return null; } - foreach (var software in _source.Softwares) + foreach (var software in _source.Softwares) { if ((!string.IsNullOrEmpty(model.SoftwareName) && software.SoftwareName == model.SoftwareName) || @@ -102,4 +102,4 @@ namespace AbstractSoftwareInstallationListImplement.Implements } } -} \ No newline at end of file +}