Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions