Now, let’s look at the MVC HomeController first. Nothing special. From layout.cshtml you reference the MVC controller. The MVC controller returns a View, which is a cshtml page with the same name. So action method Planning, as an
example, is linked to Planning.cshtml.
using System.Web.Mvc;
namespace Nav4PS.Controllers
{
public class HomeController : Controller
{
public ActionResult Planning()
{
return View();
}
public ActionResult BeletMelding()
{
return View();
}
}
}