diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 18d861e5..84c6f368 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -4595,23 +4595,23 @@ namespace Myshipping.Application var statuslog = await _repStatuslog.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId).OrderByDescending(x => x.OpTime).ToListAsync(); var dto = statuslog.Adapt>(); - var statuslogdetail = _statuslogdetail.AsQueryable(); + var statuslogdetail =await _statuslogdetail.AsQueryable().ToListAsync(); foreach (var item in dto) { - var detail =await statuslogdetail.Where(x => x.PId == item.Id).ToListAsync(); + var detail = statuslogdetail.Where(x => x.PId == item.Id).ToList(); item.detail = detail.Adapt>(); } allData.statuslog = dto; - var bookinglog = _bookinglog.AsQueryable(); + var bookinglog =await _bookinglog.AsQueryable().ToListAsync(); List list = new List(); - var main = await bookinglog.Where(u => u.BookingId == bookingId).ToListAsync(); + var main = bookinglog.Where(u => u.BookingId == bookingId).ToList(); list = main.Adapt>(); if (list != null) { - var bookinglogdetail = _bookinglogdetail.AsQueryable(); + var bookinglogdetail = await _bookinglogdetail.AsQueryable().ToListAsync(); foreach (var item in list) { - var details = await bookinglogdetail.Where(x => x.PId == item.Id).ToListAsync(); + var details = bookinglogdetail.Where(x => x.PId == item.Id).ToList(); item.details = details; } }