9 SportsStore: Completing the cart

This chapter covers

  • Updating the shopping cart so that it persists itself as session data
  • Creating a shopping cart summary widget using a view component
  • Receiving and validating user data
  • Displaying data validation errors to the user

In this chapter, I continue to build the SportsStore example app. In the previous chapter, I added the basic support for a shopping cart, and now I am going to improve on and complete that functionality.

Tip You can download the example project for this chapter—and for all the other chapters in this book—from https://github.com/ManningBooks/pro-asp.net-core-7. See chapter 1 for how to get help if you have problems running the examples.

9.1 Refining the cart model with a service ...

Get Pro ASP.NET Core 7, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.