Created
December 22, 2016 21:14
-
-
Save dcomartin/3f2607ad73f0cfa3fd38dd8724103278 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 HomeController : Controller | |
{ | |
private readonly IHomeHandler _handler; | |
public HomeController(IHomeHandler handler) | |
{ | |
_handler = handler; | |
} | |
[HttpGet("/")] | |
public async Task<IActionResult> Home() | |
{ | |
var viewModel = await _handler.Handle(new Home()); | |
return View(viewModel); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment