コード例 #1
0
 /// <summary>
 /// Method to update a booking. Because the Status is the only changeable variable, we only pass the bookingID and the new value
 /// </summary>
 /// <param name="bookingID"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool UpdateBooking(string bookingID, string value)
 {
     return(bookingDataAccess.UpdateBooking(bookingID, value));
 }
コード例 #2
0
 //Her returneres en bog, ved at ændre booking return til true, og den ændre bogens status til at være ledig
 public void ReturnBook(Booking booking)
 {
     Bctr.SetAvailableTrue(booking.Book);
     booking.Returned = true;
     Bda.UpdateBooking(booking);
 }