Question: 1 . Create MVC application 2 . Follow Chapter - 2 presentation and create HomeController , Index.html using Razor View 3 . Index HTML file
Create MVC application
Follow Chapter presentation and create HomeController Index.html using Razor View
Index HTML file will have Welcome To Pizza shop and info about the shop. You can format it as you like using css
Another HTML page called Order will have HTML form which will capture users name email, phone, address, Pizza sizeSML Pizza type Garden Veggie, Pepperoni, Hawaiian Cheese
DrinksCoke Pepsi SidesGarlic bread, Muffin, Chocolate cake,
Any Small pizza: $Any medium Pizza :$ Any Large Pizza: $
Drinks any $
Sides any $
Now create Model called Pizza with data validation attributes Slide ChapterAlso this will have a method to calculate amount for total amount
From Controller POST method call model and Controller
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
