C# Class Oditel.Cirqus.Services.BookingService

Inheritance: IBookingService
Show file Open project: SamuelDebruyn/AD5-Cirqus-demo Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddBooking ( DateTimeOffset checkIn, DateTimeOffset checkOut, bool paid, System.Guid customerId ) : System.Guid
AddBooking ( IBooking booking ) : System.Guid
BookingService ( ICommandProcessor processor, IQueryable bookings ) : System
GetAllBookings ( ) : ICollection
GetBookingById ( System.Guid bookingId ) : IBooking
RemoveBooking ( System.Guid bookingId ) : bool

Method Details

AddBooking() public method

public AddBooking ( DateTimeOffset checkIn, DateTimeOffset checkOut, bool paid, System.Guid customerId ) : System.Guid
checkIn DateTimeOffset
checkOut DateTimeOffset
paid bool
customerId System.Guid
return System.Guid

AddBooking() public method

public AddBooking ( IBooking booking ) : System.Guid
booking IBooking
return System.Guid

BookingService() public method

public BookingService ( ICommandProcessor processor, IQueryable bookings ) : System
processor ICommandProcessor
bookings IQueryable
return System

GetAllBookings() public method

public GetAllBookings ( ) : ICollection
return ICollection

GetBookingById() public method

public GetBookingById ( System.Guid bookingId ) : IBooking
bookingId System.Guid
return IBooking

RemoveBooking() public method

public RemoveBooking ( System.Guid bookingId ) : bool
bookingId System.Guid
return bool