The next step is to add the controller. To do so, refer to the following steps:
- Right-click on the Controller folder, then click on Add, followed by Controller. You will end up on a modal where you will see options to create different types of controllers:
- Select API Controller with actions, using Entity Framework and click on the Add button. The following screenshot shows what happens next:
- Click on Add. Voila! It did all that hard work and created a fully fledged controller using EF Core with actions using all ...