/// <summary> /// Gets a list with all the bookings in the database /// </summary> /// <returns></returns> public List <Model.Booking> GetAll() { IBookingServices Service = new BookingServicesClient(); try { var bookings = Service.GetAll(); return(GetClientSideBooking(bookings)); } catch (NullReferenceException NE) { Console.WriteLine(NE); Console.ReadLine(); return(null); } }
/// <summary> /// Gets all bookings from the database. /// </summary> /// <returns>List of all bookings</returns> public List <Booking> GetAllBookings() { IBookingServices Service = new BookingServicesClient(); return(Service.GetAll()); }