public async Task <bool> UpdateShuttleBooking(ShuttleSchedule shuttleShedule)
 {
     _context.Update(shuttleShedule);
     //Check for successful changes to database
     //Successful
     if (await _context.SaveChangesAsync() > 0)
     {
         return(true);
     }
     //Fail
     else
     {
         return(false);
     }
 }
 public bool update(PostCharge PostCharge)
 {
     _context.Update(PostCharge);
     return(_context.SaveChanges() > 0 ? true : false);
 }
Exemplo n.º 3
0
 public bool update(ReservationInvoice reservationInvoice)
 {
     _context.Update(reservationInvoice);
     return(_context.SaveChanges() > 0 ? true : false);
 }