Adding the Product Class
Learn how to add C# classes to the Blazor WebAssembly project.
We'll cover the following
We need to add the products that are for sale. We do this as follows:
- Right-click the
ShoppingCart
project and select the “Add, New Folder” option from the menu. - Name the new folder
Models
. - Right-click the
Models
folder and select the “Add, Class” option from the menu. - Name the new class
Product
. - Click the “Add” button.
- Add the following properties to the
Product
class:
Get hands-on with 1400+ tech skills courses.