Category: C#

ASP.Net Core 3.1 Repository Pattern and Unit of Work Using Dapper

In this article I will create a web api using ASP.Net Core 3.1 and instead of using the Entity Framework which I usually do. I will try to use Dapper. We will also use Repository pattern and Unit of Work to manage our data.

Policy Based Authorization in Asp.Net Core Web Api

In the previous article we implement user authentication and secure our api endpoint using Authorize attribute. The Authorize attribute allowed us to make sure that only logged in users can access our api. In a real world application we only want to allow a certain type of users to access some part of the api. … Continue reading Policy Based Authorization in Asp.Net Core Web Api

Create User Login and Registration and Secure Asp.Net Core Web API

In this article I will show you to create user login and registration and how to secure your web api. This article is a continuation of my previous articles Creating a new ASP.NET Core Application Project and Setting Up Asp.Net Core Identity and How to Seed Users and Roles in Asp.Net Core if you haven't seen them … Continue reading Create User Login and Registration and Secure Asp.Net Core Web API