From e0cfaef3ee49a05c90ad71a41a47aa352ca8686a Mon Sep 17 00:00:00 2001 From: shadowik Date: Sat, 20 May 2023 07:21:26 +0400 Subject: [PATCH] Fix --- .../BankYouBankruptBusinessLogic/BusinessLogics/CardLogic.cs | 2 +- .../BankYouBankruptCashierApp/Views/Home/Enter.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CardLogic.cs b/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CardLogic.cs index c75ed55..cee5e5c 100644 --- a/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CardLogic.cs +++ b/BankYouBankrupt/BankYouBankruptBusinessLogic/BusinessLogics/CardLogic.cs @@ -135,7 +135,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics { throw new ArgumentNullException("Неправильный номер карты", nameof(model.Number)); } - if (string.IsNullOrEmpty(model.CVC) || model.CVC.Length != 16) + if (string.IsNullOrEmpty(model.CVC) || model.CVC.Length != 3) { throw new ArgumentNullException("Неправильный СVC карты", nameof(model.CVC)); } diff --git a/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/Enter.cshtml b/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/Enter.cshtml index ea65dd3..3f8f754 100644 --- a/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/Enter.cshtml +++ b/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/Enter.cshtml @@ -8,7 +8,7 @@
@{ - + if (APICashier.Cashier == null) {