Created
June 28, 2020 21:54
-
-
Save GeradeDev/c9c96e26dd591f74e9bd3ad58cf3d77a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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