diff --git a/University/UniversityBusinessLogics/BusinessLogic/EmployeeLogic.cs b/University/UniversityBusinessLogics/BusinessLogic/EmployeeLogic.cs index 0780282..1440053 100644 --- a/University/UniversityBusinessLogics/BusinessLogic/EmployeeLogic.cs +++ b/University/UniversityBusinessLogics/BusinessLogic/EmployeeLogic.cs @@ -5,6 +5,7 @@ using System.Text; using System.Threading.Tasks; using UniversityContracts.BindingModels; using UniversityContracts.BusinessLogicContracts; +using UniversityContracts.SearchModels; using UniversityContracts.StoragesContracts; namespace UniversityBusinessLogics.BusinessLogic @@ -29,18 +30,14 @@ namespace UniversityBusinessLogics.BusinessLogic { return; } - if (string.IsNullOrEmpty(model.PhoneNumber)) + if (string.IsNullOrEmpty(model.Login)) { - throw new ArgumentNullException(nameof(model.PhoneNumber), "Нет логина клиента"); + throw new ArgumentNullException(nameof(model.Login), "Нет логина клиента"); } if (string.IsNullOrEmpty(model.Password)) { throw new ArgumentNullException(nameof(model.Password), "Нет пароля клиента"); } - if (model.PhoneNumber.Length is < 12) - { - throw new ArgumentException(nameof(model.PhoneNumber), "Длина номера телефона должна быть 11 цифр"); - } if (model.Password.Length < 5) { diff --git a/University/UniversityBusinessLogics/BusinessLogic/PaymentLogic.cs b/University/UniversityBusinessLogics/BusinessLogic/PaymentLogic.cs index aad9296..a70d0e5 100644 --- a/University/UniversityBusinessLogics/BusinessLogic/PaymentLogic.cs +++ b/University/UniversityBusinessLogics/BusinessLogic/PaymentLogic.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using UniversityContracts.BusinessLogicContracts; +using UniversityContracts.StoragesContracts; namespace UniversityBusinessLogics.BusinessLogic { @@ -10,8 +12,8 @@ namespace UniversityBusinessLogics.BusinessLogic { private readonly ILogger _logger; private readonly IPaymentStorage _paymentStorage; - private readonly IOperationStorage _carStorage; - public PaymentLogic(ILogger logger, IPaymentStorage paymentStorage, IOperationStorage carStorage) + private readonly IClassStorage _carStorage; + public PaymentLogic(ILogger logger, IPaymentStorage paymentStorage, IClassStorage carStorage) { _logger = logger; _paymentStorage = paymentStorage; diff --git a/University/UniversityBusinessLogics/BusinessLogic/PurchaseLogic.cs b/University/UniversityBusinessLogics/BusinessLogic/PurchaseLogic.cs index c9ee846..a136aa6 100644 --- a/University/UniversityBusinessLogics/BusinessLogic/PurchaseLogic.cs +++ b/University/UniversityBusinessLogics/BusinessLogic/PurchaseLogic.cs @@ -3,6 +3,11 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using UniversityContracts.BindingModels; +using UniversityContracts.BusinessLogicContracts; +using UniversityContracts.SearchModels; +using UniversityContracts.StoragesContracts; +using UniversityContracts.ViewModels; namespace UniversityBusinessLogics.BusinessLogic { diff --git a/University/UniversityContracts/Class1.cs b/University/UniversityContracts/Class1.cs deleted file mode 100644 index 6e62b72..0000000 --- a/University/UniversityContracts/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace UniversityContracts -{ - public class Class1 - { - - } -}