-
-
Save dcomartin/12cae6c8fd5ef49cbd01ea28048828c9 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 IGetOrderById _getOrderById; | |
public GetOrderQueryHandler(IGetOrderById getOrderById) | |
{ | |
_getOrderById = getOrderById; | |
} | |
public async Task<OrderResponse> Handle(GetOrderQuery request) | |
{ | |
var orderResponse = await _getOrderById.ExecuteAsync(request.OrderId); | |
return orderResponse; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment