From 01ee30def326e56de857bae277982d22a1593258 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Thu, 2 May 2024 19:01:39 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BE=D1=87=D0=B8=20=D0=B6?= =?UTF-8?q?=D0=B8=D0=B7=D0=BD=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankDatabaseImplement/Implements/OperationStorage.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Bank/BankDatabaseImplement/Implements/OperationStorage.cs b/Bank/BankDatabaseImplement/Implements/OperationStorage.cs index 39a9186..9273b47 100644 --- a/Bank/BankDatabaseImplement/Implements/OperationStorage.cs +++ b/Bank/BankDatabaseImplement/Implements/OperationStorage.cs @@ -27,8 +27,7 @@ namespace BankDatabaseImplement.Implements .Where(x => ( (!model.Id.HasValue || x.Id == model.Id) && (!model.DateFrom.HasValue || x.OperationTime >= model.DateFrom ) && - (!model.DateTo.HasValue || x.OperationTime <= model.DateTo) && - (!model.CardId.HasValue || x.RecipientCardId == model.CardId || x.SenderCardId == model.CardId) + (!model.DateTo.HasValue || x.OperationTime <= model.DateTo) )).Select(x => x.GetViewModel).ToList(); } public OperationViewModel? GetElement(OperationSearchModel model)