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)