Purpose : to check if the user is log in in page Steps: Put the code at the top of the page to check if user log in.
% dotnet new sln % dotnet new webapi -o API % dotnet sln add API % code . % dotnet run % dotnet ef migrations add MyFirstMigration % dotnet ef database update % dotnet ef database drop % dotnet run