Authentication and Authorization - Registration Part 1

Creating The Users Controller


I finished! On to the next chapter


Demo: Creating The Users Controller

In this demo we'll create the skeleton of the controller. This is pretty much how all controllers will start.

Create Empty API Controller: UsersController.cs
  • Add private Logger
  • Add Constructor & Inject Logger
    • The logger is injected automatically for us.
    • We don't need to do anything else.
    • It comes for free… No Charge!
  • And finally, Remove and Sort Usings