Dotnet
Authentication and Authorization - Registration Part 1

Create Generic Class

PRO

I finished! On to the next chapter

Outline

Demo: Create Generic Class

In the Conduit.Models Project

House cleaning

Delete Class1.cs

Create Request Models
  • Create Folder called "Requests"
  • Create class called "UserRequest"
    • Make it Generic
      • Add a Generic Prop called "User"

Code for Generic C# Class:

namespace Conduit.Models.Requests
{
    public class UserRequest<T>
    {
        public T User { get; set; }
    }
}