it's easy to request an API with restsharp.org, but when i need to call two different API, first request holds code, and after response second one starts, i think it is not correct, below is my code:
var client = new RestClient("http://xxx.yyy.com/");
var requestHotels = new RestRequest("api/hotelUi/home/hotelList", Method.POST);
requestHotels.AddParameter("take", "16");
IRestResponse hotels = client.Execute(requestHotels);
List<Hotel> topHotels = JsonConvert.DeserializeObject<List<Hotel>>(hotels.Content);
var requestCities = new RestRequest("api/hotelUi/home/cityList", Method.POST);
requestCities.AddParameter("take", "16");
IRestResponse cities = client.Execute(requestCities);
List<City> topCities = JsonConvert.DeserializeObject<List<City>>(cities.Content);
as you see city request wait until hotel request response, but i think both of them must be send, and wait until both response come back.
how can i do this like?