May 2015
Intermediate to advanced
278 pages
5h 35m
English
The shopping cart project is now fully prepared and ready to be implemented. This chapter will implement the two common elements that will be on each page of the site. The first is the menu of book categories, and the second is the cart summary that will allow the users to see a snapshot of what is in their cart.
When the shopping cart project was created by Visual Studio, it also created a HomeController (along with the accompanying views) and a shared layout view. Example 15-1 contains an updated Views/Shared/_Layout.cs file that includes the two common elements.
Read now
Unlock full access