Question: 1 . Create MVC application 2 . Follow Chapter - 2 presentation and create HomeController , Index.html using Razor View 3 . Index HTML file

1. Create MVC application
2. Follow Chapter-2 presentation and create HomeController , Index.html using Razor View
3. Index HTML file will have Welcome To Pizza shop and info about the shop. You can format it as you like using css
4. Another HTML page called Order will have HTML form which will capture users name , email, phone, address, Pizza size(S,M,L), Pizza type (Garden Veggie, Pepperoni, Hawaiian ,Cheese)
Drinks(Coke ,Pepsi), Sides(Garlic bread, Muffin, Chocolate cake, )
Any Small pizza: $10,Any medium Pizza :$20, Any Large Pizza: $30
Drinks any $5
Sides any $10
5. Now create Model called Pizza with data validation attributes Slide 50(Chapter-2).Also this will have a method to calculate amount for total amount
6. From Controller POST method call model and Controller
7. Test your application by calling order.html This will call httppost action of controller and then the model will be called. You will get total bill amount which should be displayed on html page.

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!