diff --git a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs index b652aa7a..28c97f92 100644 --- a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs +++ b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs @@ -3104,7 +3104,17 @@ namespace Myshipping.Application } } - var slotInfo = bookingSlotAllocList.FirstOrDefault().Slot; + BookingSlotBase slotInfo = null; + + if(bookingSlotAllocList.Count > 0) + { + slotInfo = bookingSlotAllocList.FirstOrDefault().Slot; + } + else + { + slotInfo = _repBase.AsQueryable().Filter(null, true).First(t => t.Id == slotId); + } + if (slotInfo != null) {