Call ASP.NET Core Web API and Minimal API using fetch() -- Part 2

In the previous article we created a Web API controller and minimal APIs that perform CRUD operations on the Customers table. Now it's time to call our APIs from our UI. We could have used a plain HTML page for housing the UI elements but we will use the same MVC view that we have created in the previous examples of this series.