-
-
Save dcomartin/1b749712861a3f388a8bc5362e093ab1 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
public class GetOrderQueryHandler : IRequestHandler<GetOrderQuery, OrderResponse> | |
{ | |
private readonly IOrderService _orderService; | |
public GetOrderQueryHandler(IOrderService orderService) | |
{ | |
_orderService = orderService; | |
} | |
public async Task<OrderResponse> Handle(GetOrderQuery request) | |
{ | |
var orderResponse = await _orderService.GetByIdAsync(request.OrderId); | |
return orderResponse; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment