API
Razor @model
Declares the model type of the Razor template.
Formal Syntax & Structure
csharp syntaxcsharp
@model BookCardWorking Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.@model BookCardDeclares the model type of the Razor template.
@model BookCard// Documentary fragment; see linked lesson for context.@model BookCard