Adding new Tasks
Explore how to add new tasks in a Blazor WebAssembly task manager by modifying Index.razor and its code-behind. Understand using PostAsJsonAsync to send task data to the ASP.NET Web API and verify task persistence in SQL Server.
We'll cover the following...
We'll cover the following...
We need to add the ability to add new tasks. We do this as follows:
- Open the
Index.razorfile. - Add the following markup before the
@foreachloop:
- Open the
TaskManager.Client.Pages/Index.razor.cs