Created
September 27, 2015 17:40
-
-
Save jchannon/f9b2e2091449819ec2a0 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 ProductController : Controller | |
{ | |
private IMediate _mediator; | |
public ProductController(IMediate mediator) | |
{ | |
_mediator = mediator; | |
} | |
public ViewResult ProductDetails(ProductDetailQuery query) | |
{ | |
var model = _mediator.Request(query); | |
return View(model); | |
} | |
} |
daanl
commented
Sep 27, 2015
Oh that's cool. Didn't know you could use the [FromUri]
attribute.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment