Skip to content

Instantly share code, notes, and snippets.

@GeradeDev
Created June 28, 2020 21:54
Show Gist options
  • Save GeradeDev/c9c96e26dd591f74e9bd3ad58cf3d77a to your computer and use it in GitHub Desktop.
Save GeradeDev/c9c96e26dd591f74e9bd3ad58cf3d77a to your computer and use it in GitHub Desktop.
[HttpGet("{customerid}")]
[Cached(Constants.Day_In_Seconds)]
public async Task<IActionResult> GetCustomerBasket(Guid customerid)
{
var basket = await _consulHttpClient.GetAsync<BasketDto>("basket-service", $"/basket/{customerid}");
return Ok(basket);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment