Question: For this assignment you will create an ASP.NET Core MVC application to demonstrate that you understand the concepts of the MVC pattern. You need to

For this assignment you will create an ASP.NET Core MVC application to demonstrate that you understand the concepts of the MVC pattern.

You need to meet the following requirements

  • Choose an object like a Product, Automobile, Animal, or another of your choosing (Perferred Animal ex:Dog)
  • Make a view with an HTML form that will allow you to create your object
    • In the controller: create an object and populate it with the form data (Hint: Your controller action method should take a IFormCollection object)
  • Make another view that will allow you to create your object but this time use model binding
  • In both cases, add your object to a database using ADO.NET
    • Create a database class with a method to do the insert (we don't want too much code in our controllers)
    • This method should be called for both Action Methods (the modelbinding and html form data versions)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!