Adding the TaskItem class and API controller
Learn how to add a C# class and API controllers to our Blazor WebAssembly app.
We'll cover the following
We need to add the TaskItem
class. We do this as follows:
- Right-click the
TaskManager.Shared
project and select the “Add, Class” option from the menu. - Name the new class
TaskItem
. - Click the “Add” button.
- Make the class public by adding the
public
modifier:
Get hands-on with 1400+ tech skills courses.