Skip to content

Instantly share code, notes, and snippets.

@jcorioland
Last active August 29, 2015 14:21
Show Gist options
  • Save jcorioland/b23bfd57c8b0df376aad to your computer and use it in GitHub Desktop.
Save jcorioland/b23bfd57c8b0df376aad to your computer and use it in GitHub Desktop.
Sample ASP.NET Home Controller for test purpose
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult About()
{
ViewBag.Message = "Your application description page.";
return View();
}
public IActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
public IActionResult Error()
{
return View("~/Views/Shared/Error.cshtml");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment