Dotnet
Authentication and Authorization - Registration Part 1

Creating The Users Controller

PRO

I finished! On to the next chapter

Outline

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