PIbd-21 Potapov N.S. LabWork06 #7

Closed
ns.potapov wants to merge 36 commits from LabWork06 into LabWork05
Showing only changes of commit ce6b839975 - Show all commits

View File

@ -15,8 +15,7 @@ namespace SecuritySystemDatabaseImplement.Implements
{
return null;
}
using var context = new SecuritySystemDatabase();
return GetFullList().FirstOrDefault(x => (model.Id.HasValue && x.Id == model.Id));
return GetFilteredList(model).FirstOrDefault();
}
public List<OrderViewModel> GetFilteredList(OrderSearchModel model)