Posts

Showing posts from November, 2019

Creating Asp.net Core web Api Entity framework Code First Appraoch | Testing Web Api Using Postman

Image
Hello & As- salam  u  alikum  ! In this Article we will learn to Implement Web Api and test the api through Postman. Step#  1:     Create an Asp.net Web API Project as shown in the below Images. Step#  2:     Create a model folder and add a new Entity Class named as "Product". using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MircoServiceDocker.Model {     public class Product     {         public int Id { get; set; }         public string Name { get; set; }         public int Price { get; set; }         public DateTime ManufacturingDate { get; set; }     } } Step#  3:     Install  Microsoft.EntityFrameworkCore.SqlServer &    Microsoft.EntityFrameworkCore.Tools  which I Had explained in my previous ...

Add & Display Roles in asp.net Core Identity | Asp.net Core Idnetity

Image
Hello & As- salam  u  alikum  ! , In the previous articles we had discussed about Client side validations,Remote Validations & Custom Validations, There is the reference in the below link. https://dotnetcorecommunity.blogspot.com/2019/11/emailuser-name-already-taken-remote.html At the moment, We are going to learn about roles in asp.net core identity, Before moving towards this topic I must suggest you to see these below articles for the basic or prior knowledge to understand about this concept. 1-Implementing Asp.net Core Identity |Authentication and Authorization| Introduction To Asp.net Core Identity | asp.net core 2.0 identity tutorial 2-Implementing Login Logout & Sign up Feature in Asp.net Core Identity using Sign in Manager | Login Log out show in Navigation Bar | Session Cookie Vs Persistence Cookie 3-Authorization In Asp.net Core Identity | AllowAnonymous & Authorize Attribute in Asp.net Core | Set Authorization Globally Step#...