© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_9

9. SportsStore: Navigation

Adam Freeman

(1)London, UK

In this chapter, I continue to build out the SportsStore example app. In this chapter, I add support for navigating around the application and start building a shopping cart.

Adding Navigation Controls

The SportsStore application will be more useful if customers can navigate products by category. I will do this in three phases.

  • Enhance the List action model in the ProductController class so that it is able to filter the Product objects in the repository

  • Revisit and enhance the URL scheme

  • Create a category list that will go into the sidebar of the site, highlighting the current category and linking ...

Get Pro ASP.NET Core MVC 2 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.