Passing a Model to a View

An action hands its view a model with View(model); the view names the model's type with @model and reads it through Model. ViewData carries small extras, such as the page title.

Updated

Cheat sheet: Passing a Model to a View
Category
ASP.NET Core
Level
Journeyman
Tags
.cshtml File, @model, aspnet-core, c-sharp, razor, Strongly Typed View, ViewData