public async Task <IActionResult> GetHotelsByPartnerId([FromBody] List <int> partnerIdList) { BaseResult <List <HotelView> > hotelResult = await iHotel.GetHotelsByPartnerId(partnerIdList).ConfigureAwait(false); if (hotelResult.IsError && hotelResult.ExceptionMessage != null) { return(StatusCode(500, hotelResult)); } else if (hotelResult.Result == null || hotelResult.Result.Count == 0) { return(NoContent()); //204 } else { return(Ok(hotelResult)); } }