public async Task <IActionResult> GetHotelsByBrandId([FromBody] List <int> brandIds) { BaseResult <List <HotelView> > hotelResult = await iHotel.GetAllHotelsByBrandId(brandIds).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)); } }