-
-
Save OksanaH/c44c5d109b2fd06d8dbd689915c37dbc to your computer and use it in GitHub Desktop.
OrderController.cs
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
[ApiController] | |
[Route("[controller]")] | |
public class OrderController : ControllerBase | |
{ | |
private readonly OrderApiGateway orderGateway; | |
public OrderController(OrderApiGateway orderGateway) | |
{ | |
this.orderGateway = orderGateway; | |
} | |
[HttpGet] | |
public IActionResult Get() | |
{ | |
var orderNumber = orderGateway.GetOrderNumber(); | |
return Ok($"Your order number is {orderNumber}"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment