Form Demo - Add New Car
This example demonstrates processing a simple HTML form in a Weakly-Typed View without a Model. The form controls use the name and id attributes
that the Model Binder component will map to the CarsController's method input parameters. The names and ids must exactly match
the Controller method's input parameters.
This View uses two separate Controller methods to handle the processing of this page. The Controller contains
two overloaded "SaveCar" methods where one method is used to deliver the View for user input and the other is used to process the form.
The Controller's "SaveCar()" method is used to deliver this View to the client to gather user input for the new car.
This Controller method passes a Car object used as the Model for the View.
The View uses the Controller's "SaveCar(vin, make, model, year, color, value, imageUrl)" method to process the HTML form.
The form controls are bound to the input parameters based on the name and id property. The form uses HTTP Post to
submit the form data to the Controller's method.