Basic MVC application

This commit is contained in:
Unknown
2017-12-21 12:25:05 +00:00
parent 4db6fb0118
commit d97260b7aa
17 changed files with 201 additions and 0 deletions

View File

@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
namespace test.Controllers
{
public class AboutController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult TellMeMore(string moreInfo = "")
{
return new JsonResult(new { name = "TellMeMore", content = moreInfo });
}
}
}

View File

@ -0,0 +1,18 @@
using Microsoft.AspNetCore.Mvc;
using System;
namespace test.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Error()
{
return View();
}
}
}