From 4310c47ceb3e3449e7c8c4285f20917945fbabb2 Mon Sep 17 00:00:00 2001 From: Leozillo73 <76777036+Leozillo73@users.noreply.github.com> Date: Fri, 31 May 2024 16:12:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B0=D0=B6=D0=BD=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZooDataBaseImplement/Implements/PreserveStorage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/git/JurasicZoo/ZooDataBaseImplement/Implements/PreserveStorage.cs b/git/JurasicZoo/ZooDataBaseImplement/Implements/PreserveStorage.cs index 80b318d..b372b8f 100644 --- a/git/JurasicZoo/ZooDataBaseImplement/Implements/PreserveStorage.cs +++ b/git/JurasicZoo/ZooDataBaseImplement/Implements/PreserveStorage.cs @@ -23,6 +23,7 @@ namespace ZooDataBaseImplement.Implements public List GetFilteredList(PreserveSearchModel model) { + using var context = new ZooDatabase(); return context.Preserves.Where(x => x.EmployeeId == model.EmployeeId) .Where(x => String.IsNullOrEmpty(model.PreserveName) || x.PreserveName.Contains(model.PreserveName))