Browse Source

[WHAT] 註解掉Save booking

Dev
berlin-tzen 2 years ago
parent
commit
967c517d61
  1. 40
      EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMaintain_UpdService.cs

40
EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMaintain_UpdService.cs

@ -255,19 +255,39 @@ namespace EasyBL.WEBAPP.WSM
public ResponseMessage SaveBooking(SETB_SAL_Booking Booking) {
//public ResponseMessage SaveBooking(SETB_SAL_Booking Booking) {
// ResponseMessage rsResult = null;
// if (string.IsNullOrEmpty(Booking.BookingID))
// {
// // insert
// rsResult = Insert(Booking);
// }
// else {
// // update
// rsResult = UpdateBooking(Booking);
// }
// return rsResult;
//}
public ResponseMessage SaveBooking(SETB_SAL_BookingOnline Booking)
{
ResponseMessage rsResult = null;
if (string.IsNullOrEmpty(Booking.BookingID))
{
// insert
rsResult = Insert(Booking);
}
else {
// update
rsResult = UpdateBooking(Booking);
}
//if (string.IsNullOrEmpty(Booking.BookingID))
//{
// // insert
// rsResult = Insert(Booking);
//}
//else
//{
// // update
// rsResult = UpdateBooking(Booking);
//}
return rsResult;

Loading…
Cancel
Save