Фикс базы данных и фильтрации
This commit is contained in:
parent
8ffd918013
commit
890f11f6d4
@ -7,7 +7,7 @@ using SushiBarBusinessLogic.OfficePackage;
|
||||
using SushiBarBusinessLogic.OfficePackage.Implements;
|
||||
using SushiBarContracts.BusinessLogicsContracts;
|
||||
using SushiBarContracts.StoragesContracts;
|
||||
using SushiBarFileImplement.Implements;
|
||||
using SushiBarDatabaseImplement.Implements;
|
||||
using SushiBarView;
|
||||
using SushiBarView.Reports;
|
||||
using System.Text;
|
||||
|
@ -17,9 +17,8 @@ namespace SushiBarDatabaseImplement.Implements
|
||||
|
||||
public List<OrderViewModel> GetFilteredList(OrderSearchModel model)
|
||||
{
|
||||
using var context = new SecuritySystemDatabase();
|
||||
using var context = new SushiBarDatabase();
|
||||
var orders = context.Orders
|
||||
.Include(x => x.Secure)
|
||||
.Select(x => x.GetViewModel)
|
||||
.ToList();
|
||||
if (model.Id.HasValue)
|
||||
|
Loading…
Reference in New Issue
Block a user