Using ASP.NET MVC, you can use the Razor view engine.
Razor allows you to use C # code after the sign @.
As an example
@if (Model.Category == "watersports")
{
<p>Splash!!</p>
}
Alternatively, you can use something like @DateTime.Nowto get the current time. My question is: what features can I use? Where do they import Razor from?
source
share