Views
A view renders the page directly, with the page as its model and no controller of your own. MVC
finds it by name in Views/Shared, or by a full path such as ~/Views/Pages/Article.cshtml.
@* Views/Shared/Article.cshtml, from RenderRazorView<IArticle>() or a view template *@
@using MySite.Models
@model IArticle
<article>
<h1>@Model.Name</h1>
<p class="intro">@Model.Intro</p>
@Html.Raw(Model.Body)
</article>