C# Class Oditel.Cirqus.Services.BookingService

Inheritance: IBookingService
Afficher le fichier Open project: SamuelDebruyn/AD5-Cirqus-demo Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public AddBooking ( DateTimeOffset checkIn, DateTimeOffset checkOut, bool paid, System.Guid customerId ) : System.Guid
checkIn DateTimeOffset
checkOut DateTimeOffset
paid bool
customerId System.Guid
Résultat System.Guid

AddBooking() public méthode

public AddBooking ( IBooking booking ) : System.Guid
booking IBooking
Résultat System.Guid

BookingService() public méthode

public BookingService ( ICommandProcessor processor, IQueryable bookings ) : System
processor ICommandProcessor
bookings IQueryable
Résultat System

GetAllBookings() public méthode

public GetAllBookings ( ) : ICollection
Résultat ICollection

GetBookingById() public méthode

public GetBookingById ( System.Guid bookingId ) : IBooking
bookingId System.Guid
Résultat IBooking

RemoveBooking() public méthode

public RemoveBooking ( System.Guid bookingId ) : bool
bookingId System.Guid
Résultat bool