From 21716c00ee6d08068f65bee05d989ce30d63eec4 Mon Sep 17 00:00:00 2001 From: frog24 Date: Sun, 7 Apr 2024 21:19:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D0=B5=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComputersShopDatabaseImplements/Implements/OrderStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComputersShop/ComputersShopDatabaseImplements/Implements/OrderStorage.cs b/ComputersShop/ComputersShopDatabaseImplements/Implements/OrderStorage.cs index 22e28e5..140d1b3 100644 --- a/ComputersShop/ComputersShopDatabaseImplements/Implements/OrderStorage.cs +++ b/ComputersShop/ComputersShopDatabaseImplements/Implements/OrderStorage.cs @@ -25,7 +25,7 @@ namespace ComputersShopDatabaseImplements.Implements } public List GetFiltredList(OrderSearchModel model) { - if (!model.DateFrom.HasValue || !model.DateTo.HasValue) + if (!model.DateFrom.HasValue && !model.DateTo.HasValue && !model.Id.HasValue) { return new(); }