...
/Adding the TaskItem class and API controller
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.Sharedproject 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
publicmodifier:
Press + to interact
public class TaskItem
...
Ask