Our custom initialization logic implementation will rely upon a brand-new dedicated Controller, which will be called SeedController.
From our project's Solution Explorer, do the following:
- Right-click on the /Controllers/ folder.
- Click on Add | Controller.
- Choose the API Controller - Empty option (the third from the top, at the time of writing).
- Give the Controller the SeedController name and click Add to create it.
Once done, open the newly-created /Controllers/SeedController.cs file and take a look at the source code: you'll see that there's just an empty class: just as expected for an empty Controller! This is great since we need to understand some key concepts and—most importantly—learn how to properly translate ...