This commit is contained in:
mmrbnjd
2024-07-29 17:50:46 +03:30
parent 68667b5f95
commit a025225920
5 changed files with 86 additions and 7 deletions

View File

@@ -63,7 +63,9 @@ namespace Back.Services
}
public async Task<Order> GetOrder(int OrderID, int CompanyID)
{
return await _repoOrder.Get(w => w.ID == OrderID && w.CompanyID == CompanyID) .FirstOrDefaultAsync();
return await _repoOrder.Get(w => w.ID == OrderID && w.CompanyID == CompanyID)
.Include(inc=>inc.OrderItems)
.FirstOrDefaultAsync();
}
public async Task<bool> UpdateOrder(Order order)
{