Фикс базы данных и фильтрации

This commit is contained in:
ekallin 2024-03-25 09:56:01 +04:00
parent 8ffd918013
commit 890f11f6d4
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@ using SushiBarBusinessLogic.OfficePackage;
using SushiBarBusinessLogic.OfficePackage.Implements; using SushiBarBusinessLogic.OfficePackage.Implements;
using SushiBarContracts.BusinessLogicsContracts; using SushiBarContracts.BusinessLogicsContracts;
using SushiBarContracts.StoragesContracts; using SushiBarContracts.StoragesContracts;
using SushiBarFileImplement.Implements; using SushiBarDatabaseImplement.Implements;
using SushiBarView; using SushiBarView;
using SushiBarView.Reports; using SushiBarView.Reports;
using System.Text; using System.Text;

View File

@ -17,9 +17,8 @@ namespace SushiBarDatabaseImplement.Implements
public List<OrderViewModel> GetFilteredList(OrderSearchModel model) public List<OrderViewModel> GetFilteredList(OrderSearchModel model)
{ {
using var context = new SecuritySystemDatabase(); using var context = new SushiBarDatabase();
var orders = context.Orders var orders = context.Orders
.Include(x => x.Secure)
.Select(x => x.GetViewModel) .Select(x => x.GetViewModel)
.ToList(); .ToList();
if (model.Id.HasValue) if (model.Id.HasValue)