public async Task <ActionResult> CreateOrderDraft(int buyerId) { var basketUri = _serviceDiscoveryProvider.GetService("basket"); var orderingUri = _serviceDiscoveryProvider.GetService("ordering"); var basket = await basketUri .AppendPathSegment("api/basket") .AppendPathSegment(buyerId) .GetJsonAsync(); var order = await orderingUri .AppendPathSegment("api/orders") .AppendPathSegment(buyerId) .PostJsonAsync((object)basket) .ReceiveJson(); return(Ok(new { order.id })); }