예제 #1
0
 /// <summary>
 /// Returns a Booking with a specific id
 /// </summary>
 /// <param name="id">The id of the Booking</param>
 /// <returns>The booking specified</returns>
 public Booking GetBookingById(int id)
 {
     try
     {
         return(repo.Single(r => r.BookingId == id));
     }
     catch (Exception ex)
     {
         LogManager.Error(ex.Message);
         throw;
     }
 }