コード例 #1
0
        public async Task <IActionResult> GetHotels([FromBody] HotelQueryDto hotelQuery)
        {
            Params          userQuery = Params.FromModelDto(hotelQuery).AddHotelSearchDefaultParams();
            Result <Hotels> result    = await Mediator.Send(new HotelsList.Query {
                param = userQuery
            });

            return(Ok(HotelMapper.HotelsToDto(result.Value)));
        }