From c7fa6e22374812be4c8bc4fe687a100a7cf305df Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Sun, 14 May 2023 20:27:15 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessLogics/CreditingLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CreditingLogic.cs b/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CreditingLogic.cs index e82a413..ee2412c 100644 --- a/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CreditingLogic.cs +++ b/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CreditingLogic.cs @@ -100,7 +100,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics { throw new ArgumentNullException("Сумма операции должна быть больше 0", nameof(model.Sum)); } - if (model.Date < DateTime.Now) + if (model.Date > DateTime.Now) { throw new ArgumentNullException("Дата не может быть меньше текущего времени", nameof(model.Date)); }