Adding the Product Class
Explore the process of creating a Product class within a Blazor WebAssembly project. Understand how to organize your project by adding models and sample data, including JSON files and images, to support a persistent shopping cart using the application state pattern.
We'll cover the following...
We'll cover the following...
We need to add the products that are for sale. We do this as follows:
- Right-click the
ShoppingCartproject and select the “Add, New Folder” option from the menu. - Name the new folder
Models. - Right-click the
Modelsfolder and select the “Add, Class” option from the menu. - Name the