HotelBooking  0.0.3
HotelBookingApi.Services.MongoService Class Reference

Public Member Functions

 MongoService (IConfiguration config)
 
Reservation GetReservationByGuest (string guestName)
 
Order GetOrderByGuest (string guestName)
 
Room CheckinByGuestId (string guest_id)
 
Room CheckoutByGuestId (string guest_id)
 
Room CheckoutByRoomId (string room_id)
 
List< RoomGetRoomsTypes (string Type, string DateStart, string DateEnd, string PriceLower, string PriceUpper)
 
List< RoomGetRoomsTypes (string Dates, string Prices, string Type)
 
RoomType GetRoomType (string id)
 
Room Create (Room room)
 
void Update (string id, Room roomIn)
 
void Remove (Room roomIn)
 
void Remove (string id)
 
bool CancelReservation (string guestName)
 
bool CancelOrderByRoom (string guestName)
 
Collaboration diagram for HotelBookingApi.Services.MongoService:
Collaboration graph

Constructor & Destructor Documentation

◆ MongoService()

HotelBookingApi.Services.MongoService.MongoService ( IConfiguration  config)

Member Function Documentation

◆ CancelOrderByRoom()

bool HotelBookingApi.Services.MongoService.CancelOrderByRoom ( string  guestName)

◆ CancelReservation()

bool HotelBookingApi.Services.MongoService.CancelReservation ( string  guestName)

◆ CheckinByGuestId()

Room HotelBookingApi.Services.MongoService.CheckinByGuestId ( string  guest_id)

◆ CheckoutByGuestId()

Room HotelBookingApi.Services.MongoService.CheckoutByGuestId ( string  guest_id)

◆ CheckoutByRoomId()

Room HotelBookingApi.Services.MongoService.CheckoutByRoomId ( string  room_id)

◆ Create()

Room HotelBookingApi.Services.MongoService.Create ( Room  room)

◆ GetOrderByGuest()

Order HotelBookingApi.Services.MongoService.GetOrderByGuest ( string  guestName)

◆ GetReservationByGuest()

Reservation HotelBookingApi.Services.MongoService.GetReservationByGuest ( string  guestName)

◆ GetRoomsTypes() [1/2]

List<Room> HotelBookingApi.Services.MongoService.GetRoomsTypes ( string  Type,
string  DateStart,
string  DateEnd,
string  PriceLower,
string  PriceUpper 
)

◆ GetRoomsTypes() [2/2]

List<Room> HotelBookingApi.Services.MongoService.GetRoomsTypes ( string  Dates,
string  Prices,
string  Type 
)
Here is the call graph for this function:

◆ GetRoomType()

RoomType HotelBookingApi.Services.MongoService.GetRoomType ( string  id)

◆ Remove() [1/2]

void HotelBookingApi.Services.MongoService.Remove ( Room  roomIn)

◆ Remove() [2/2]

void HotelBookingApi.Services.MongoService.Remove ( string  id)

◆ Update()

void HotelBookingApi.Services.MongoService.Update ( string  id,
Room  roomIn 
)

The documentation for this class was generated from the following file: