From 9106c350e00ff173e6d74da9e84d2e57bc058461 Mon Sep 17 00:00:00 2001 From: DeerElk Date: Sun, 5 May 2024 05:45:08 +0400 Subject: [PATCH] lab4.. --- .../ConfectioneryFileImplement/Implements/OrderStorage.cs | 4 ---- .../ConfectioneryListImplement/Implements/OrderStorage.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Confectionery/ConfectioneryFileImplement/Implements/OrderStorage.cs b/Confectionery/ConfectioneryFileImplement/Implements/OrderStorage.cs index d9819c3..70d32cd 100644 --- a/Confectionery/ConfectioneryFileImplement/Implements/OrderStorage.cs +++ b/Confectionery/ConfectioneryFileImplement/Implements/OrderStorage.cs @@ -20,10 +20,6 @@ namespace ConfectioneryFileImplement.Implements } public List GetFilteredList(OrderSearchModel model) { - if (!model.Id.HasValue) - { - return new(); - } return source.Orders .Where(x => ( (!model.Id.HasValue || x.Id == model.Id) && diff --git a/Confectionery/ConfectioneryListImplement/Implements/OrderStorage.cs b/Confectionery/ConfectioneryListImplement/Implements/OrderStorage.cs index 7d65a31..9742098 100644 --- a/Confectionery/ConfectioneryListImplement/Implements/OrderStorage.cs +++ b/Confectionery/ConfectioneryListImplement/Implements/OrderStorage.cs @@ -24,10 +24,6 @@ namespace ConfectioneryListImplement.Implements public List GetFilteredList(OrderSearchModel model) { var result = new List(); - if (!model.Id.HasValue) - { - return result; - } foreach (var order in _source.Orders) { if ((!model.Id.HasValue || order.Id == model.Id) &&