public async Task <ActionResult <HotelRoom> > PostHotelRoom(HotelRoom hotelRoom) { await _hotelRoomRepo.CreateHotelRoom(hotelRoom); return(CreatedAtAction("GetHotelRoom", new { id = hotelRoom.HotelId }, hotelRoom)); }
public async Task <ActionResult <HotelRoom> > PostHotelRoom(HotelRoom hotelRoom) { await _hotelRoomRepo.CreateHotelRoom(hotelRoom); return(CreatedAtAction("GetHotelRoom", new { id = hotelRoom.HotelId }, hotelRoom)); }