Created
September 21, 2016 16:28
-
-
Save nbxx/5af14ce0a240b063858ca1c83f41211c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using Microsoft.AspNetCore.Mvc; | |
namespace ConsoleApplication | |
{ | |
public class HomeController : Controller | |
{ | |
[HttpGet("/{name}")] | |
public IActionResult Index(string name) | |
{ | |
ViewBag.Name = name; | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment