diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index 28070404..878b2bbf 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -2015,19 +2015,22 @@ namespace Myshipping.Application
///
///
[HttpPost("/BookingSampleBill/Save")]
- public async Task SampleBillSave(UpdateBookingSampleBillInput input)
+ public async Task SampleBillSave(UpdateBookingSampleBillInput input)
{
+ BookingSampleBill entity = null;
if (input.Id == 0)
{
- var entity = input.Adapt();
+ entity = input.Adapt();
await _repSampleBill.InsertAsync(entity);
}
else
{
- var entity = _repSampleBill.FirstOrDefault(x => x.BookingId == input.Id);
+ entity = _repSampleBill.FirstOrDefault(x => x.BookingId == input.Id);
entity = input.Adapt(entity);
await _repSampleBill.UpdateAsync(entity);
}
+
+ return entity.Id;
}
///