Tag: asp

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

How to Seed Users and Roles in Asp.Net Core

In my previous article Creating a new ASP.NET Core Application Project and Setting Up Asp.Net Core Identity we created a new Asp.Net Core project and setup Asp.Net Core identity and database. Now in this article we will create I will show you how to create our initial data in our database. Using the same project that … Continue reading How to Seed Users and Roles in Asp.Net Core

Creating a new ASP.NET Core Application Project and Setting Up Asp.Net Core Identity

Creating Asp.Net Core Web Api Project Create a new Asp.Net Core Web Application and name it whatever name you want, but for me I will name my project as PayrollApp.Api since I plan to create a payroll application. Then select Api for project template and leave Authentication to no Authentication. Building Asp.Net Core Database and … Continue reading Creating a new ASP.NET Core Application Project and Setting Up Asp.Net Core Identity

How To Create an ASP.Net Core Web API Using Visual Studio 2019

In this article I will teach you how to create an ASP .Net Core Web API using Visual Studio 2019. If you don't have Visual Studio 2019, you can download it from https://visualstudio.microsoft.com/ for free. https://www.youtube.com/watch?v=v0CFQj8RZHI&feature=youtu.be In installing Visual Studio 2019. Make sure to check ASP.NET and web development. After installing Visual Studio 2019. Open … Continue reading How To Create an ASP.Net Core Web API Using Visual Studio 2019

Library Management using ASP.Net MVC (Part 6) Borrowing and returning a book

In this part we will be finishing up the functionality to assign a book to a customer and returning the book. Source Code: https://github.com/alexcalingasan/LibraryManagement Now let's update our View for Create and Edit page of BorrowHistory. Copy and paste this for your BorrowHistory create view. Then change your BorrowHistories Edit view code to this. Then … Continue reading Library Management using ASP.Net MVC (Part 6) Borrowing and returning a book

Library Management using ASP.Net MVC (Part 5) Eager Loading and Projection

In this part you will learn how to get the data from the related entities using eager loading. We will also use projection to get the data that we need for the frontend. In the index page of our books, we want to see the list of books and if they are still available or … Continue reading Library Management using ASP.Net MVC (Part 5) Eager Loading and Projection

Library Management using ASP.Net MVC (Part 4) Entity Framework Relationship and Navigation Properties

In this article, we will start looking at the relationship between the customer and book model and how we can keep track of customer borrowing history. Before we start coding we should determine first the relationship of the customer and the book. Points to consider The customer can borrow multiple books. The book can be … Continue reading Library Management using ASP.Net MVC (Part 4) Entity Framework Relationship and Navigation Properties