Важный комит

This commit is contained in:
Leozillo73 2024-05-31 16:12:26 +04:00
parent d98e21109d
commit 4310c47ceb

View File

@ -23,6 +23,7 @@ namespace ZooDataBaseImplement.Implements
public List<PreserveViewModel> 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))