Generic Type Parameters in C#: A Comprehensive Guide

Generic Type Parameters

In the world of programming, generic type parameters offer immense flexibility and reusability to developers. You can develop classes, methods, and interfaces that function with various data types using generic type parameters, which improves the readability, maintainability, and efficiency of your code. This article will demonstrate how to use generic type parameters in C# and … Read more

Cookie Authentication in ASP.NET Core

Login Web Application using Cookie Authentication in ASP NET Core

In this tutorial, we will create a login web application using Cookie Authentication in ASP NET Core. We will also complete user registration and logout functionality and use dapper for the database connectivity. What is Cookie Authentication? Cookie authentication is one of the ways to implement login authentication. The cookie stored the identity of the … Read more

How to use Attribute Routing in ASP.NET MVC 5

How to use Attribute Routing in ASP.NET MVC 5

In this tutorial, we will learn how to use attribute routing in ASP NET MVC 5. We will create an actual project and then enable and apply attribute routing. This way, we can understand how attribute routing can help us control our website’s structure. What is Routing in MVC? Routing maps URL to an Action … Read more

How to use AutoMapper in ASP.NET Core 6.0

How to use automapper in asp.net core

In this article, we are going to learn how to use AutoMapper in an ASP.NET Core application. We are going to begin by understanding what AutoMapper is and what problem it solves. Then, we are going to use AutoMapper in an ASP.NET Core web API application. What is Automapper? AutoMapper is an object-to-object mapper that works by … Read more

Use JWT Bearer Authorization in Swagger OpenAPI

JWT Authentication with swagger

In this tutorial, we will implement a CRUD functionality with JWT Authentication in ASP NET Core WEB API and use JWT Bearer Authorization in Swagger for testing. In the past, we’ve created an article that uses JWT Authentication in ASP.NET Core, which can be found here. This tutorial is just an extension of that topic … Read more

Create a minimal web API with ASP.NET Core

Create a minimal web API with ASP NET Core

The traditional Asp.Net Core API is good for backend applications. However, if you want to develop microservices and cloud-native applications, that type of technique can be a little too much and hence the need for Minimal APIs. Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps … Read more

Unit Testing in ASP NET Core Web API

Unit Testing in ASP.NET Core Web API

In this tutorial, we will create a sample unit test scenario to understand how we can automate unit Testing in ASP NET Core Web API. I. What is unit testing Unit testing is a type of software testing process that involves testing small parts of an application (Units) in isolation from its infrastructure and dependencies. … Read more