Skip to main content

Posts

.NET6 Web API CRUD Operation With Entity Framework Core

In this article, we are going to do a small demo on AspNetCore 6 Web API CRUD operations. What Is Web API: Web API is a framework for building HTTP services that can be accessed from any client like browser, mobile devices, desktop apps. In simple terminology API(Application Programming Interface) means an interface module that contains a programming function that can be requested via HTTP calls to save or fetch the data for their respective clients. Some of the key characteristics of API: Supports HTTP verbs like 'GET', 'POST', 'PUT', 'DELETE', etc. Supports default responses like 'XML' and 'JSON'. Also can define custom responses. Supports self-hosting or individual hosting, so that all different kinds of apps can consume it. Authentication and Authorization are easy to implement. The ideal platform to build REST full services. Create A .NET6 Web API Application: Let's create a .Net6 Web API sample application to accomplish our

A Demo On Azure AD B2C Authentication In MVC Application[.NET 6]

In this article, we are going to do a demo on Azure AD B2C authentication in the MVC application[.NET 6]. Azure AD B2C Configuration Steps: Step1: Login into Azure Portal( https://portal.azure.com/ ) Step2: Chose the directory that has the subscription(eg: free, student, pay-as-you-go, etc). (1) Select the 'Directories + Subscriptions' on the azure portal menu. (2) Left side menu select 'Directories + Subscriptions'. Bottom select 'All Directories' tab where we can select all directories we have the option to 'switch'. Here I have only one directory that has my subscription. So if we have multiple directories then we can see a 'switch' option. Step 3: The 'Microsoft.AzureActiveDirectory' resource provider needs to register with our 'subscription'. (1) On the Azure portal home page select 'Subscriptions'. (2) Now select your appropriate subscription. (3) Search 'Resource Provider' and then 'Microsoft.AzureAc