From 30c7a00d37416ec4714eb418d33201156c32a61a Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Wed, 8 May 2024 15:41:08 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=B3=D0=B0=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComputersShopDatabaseImplement/Implements/OrderStorage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs b/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs index c409869..6dc3adf 100644 --- a/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs +++ b/ComputersShop/ComputersShopDatabaseImplement/Implements/OrderStorage.cs @@ -29,7 +29,8 @@ namespace ComputersShopDatabaseImplement.Implements (!model.Id.HasValue || x.Id == model.Id) && (!model.DateFrom.HasValue || x.DateCreate >= model.DateFrom) && (!model.DateTo.HasValue || x.DateCreate <= model.DateTo) && - (!model.ClientId.HasValue || x.ClientId == model.ClientId) + (!model.ClientId.HasValue || x.ClientId == model.ClientId) && + (!model.Status.HasValue || x.Status == model.Status) ) ) .Select(x => x.GetViewModel)