Example #1
0
        public async Task <ICollection <RoomDTO> > GetAllRooms()
        {
            HotelMenagmentHttpClient HotelClient = new HotelMenagmentHttpClient(url, httpClient);
            ICollection <Room>       rooms       = await HotelClient.RoomsAllAsync();

            return(_mapper.Map <ICollection <RoomDTO> >(rooms));
        }
Example #2
0
        public async Task <ICollection <GuestDTO> > GetAll()
        {
            HotelMenagmentHttpClient HotelClient = new HotelMenagmentHttpClient(url, httpClient);
            ICollection <Guest>      guests      = await HotelClient.GuestsAllAsync();

            return(_mapper.Map <ICollection <GuestDTO> >(guests));
        }
Example #3
0
        public async Task <ICollection <ReservationDTO> > GetAllReservations()
        {
            HotelMenagmentHttpClient  HotelClient  = new HotelMenagmentHttpClient(url, httpClient);
            ICollection <Reservation> reservations = await HotelClient.ReservationsAllAsync();

            return(_mapper.Map <ICollection <ReservationDTO> >(reservations));
        }