Car Display Page - Strongly Typed View

This example demonstrates using a Strongly-Typed View to display a single Car's detailed information. The controller passes a Car object to this View using the View Model approach. Car object's data can be accessed and used by the View through the "Model" keyword. within the View's template HTML code. This also requires the Controller to pass the Model object to the View using the View() method. This View is delivered as the result of processing the Controller's "ViewCarDetails" method. The View doesn't require any processing since it doesn't contain a form or any actions that need further processing by the Controller. This View is simply used to display the details of a single car.


Car: VIN: Make: Model: Year: Color: Value:
MB3456 Mercedes-Benz GLS450 2024 Silver $135,000.00