From ba2ed3bc51fe56064b529ec8e2e1f1afbd81f25b Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Sat, 1 Apr 2023 19:38:33 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B0=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JewelryStoreListImplement/Implements/OrderStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JewelryStoreListImplement/Implements/OrderStorage.cs b/JewelryStoreListImplement/Implements/OrderStorage.cs index 3542a78..dee309f 100644 --- a/JewelryStoreListImplement/Implements/OrderStorage.cs +++ b/JewelryStoreListImplement/Implements/OrderStorage.cs @@ -51,7 +51,7 @@ namespace JewelryStoreListImplement.Implements public List GetFilteredList(OrderSearchModel model) { var result = new List(); - if (model == null) + if (!model.DateFrom.HasValue || !model.DateTo.HasValue) { return result; }