public async Task <ICollection <RoomDTO> > GetAllRooms() { HotelMenagmentHttpClient HotelClient = new HotelMenagmentHttpClient(url, httpClient); ICollection <Room> rooms = await HotelClient.RoomsAllAsync(); return(_mapper.Map <ICollection <RoomDTO> >(rooms)); }
public async Task <ICollection <GuestDTO> > GetAll() { HotelMenagmentHttpClient HotelClient = new HotelMenagmentHttpClient(url, httpClient); ICollection <Guest> guests = await HotelClient.GuestsAllAsync(); return(_mapper.Map <ICollection <GuestDTO> >(guests)); }
public async Task <ICollection <ReservationDTO> > GetAllReservations() { HotelMenagmentHttpClient HotelClient = new HotelMenagmentHttpClient(url, httpClient); ICollection <Reservation> reservations = await HotelClient.ReservationsAllAsync(); return(_mapper.Map <ICollection <ReservationDTO> >(reservations)); }