You're all going to die down here.

No really, you're all going to die down here.


1.) This is the Privacy Pawlicy

2.) This is the @ViewData["Title"]

In the first h2 tag the razor designator '@' is used to call a C# method of ViewData[]

In the second h2 tag the razor designator '@' is escaped with a double '@@' to show the C# inline code.


This is the Privacy Page auto-generated by Visual Studio when creating a new MVC Model.

The Directory structure is:

  • Views
    • Home
      • Privacy.cshtml

The Top-level razor code is:

@{
       ViewData["Title"] = "Privacy Pawlicy" ;
}

Notice the:

@page
@model PrivacyModel

are missing, compared to the Razor model.
These calls are made by the MVC Controller in this model.