-> Open up Visual Studio and Create a new ASP.NET Core Web API Project.
-> Install-Package MediatR.
-> Define the controller action.
-> Register the dependencies and middlewares in program.cs file.
-> Create your layers to manage the crud operations.
-> Create custom exception handling as per need.
-> Run the application.
-> Test your api endpoints.