private async Task Search(SearchItem searchItem) { ISearchClient searchClient = ResolveSearchClient(searchItem.Url); var orders = await searchClient.GetOrders(searchItem.Url); var result = await PostAds(searchItem.OwnerId.ToString(), orders); if (result != HttpStatusCode.OK) { throw new Exception("Orders are not posted to server"); } }