Last active
September 21, 2016 16:22
-
-
Save nbxx/2f6ac20a4fa14754ad74b2fe9b6b3bc2 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
using System; | |
using Microsoft.AspNetCore.Mvc; | |
namespace ConsoleApplication | |
{ | |
public class HomeController | |
{ | |
[HttpGet("/{name}")] | |
public string Index(string name) | |
{ | |
return $"Hello {name}"; | |
} | |
[HttpGet("/")] | |
public string Index() | |
{ | |
return "Hello ASP.NET Core MVC"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment