Part 19 - UserCategory Functionality - Let's Build an ASP.NET Core MVC Web Application on .NET 5

Опубликовано: 21 Февраль 2026
на канале: Gavin Lon
2,189
68

In this video we create the functionality for an administrator to update the UserCategory database table through our web application.

This tutorial is split up into the following 5 parts:
(7:26) - Section 1 - Create the the UserModel View Model and the UsersCategoryListModel view Model

(12:28) - Section 2 - Create the '_UserListViewPartial' partial view and its Parent Index view

(23:02) - Section 3 - Create the 'UsersToCategoryController' Controller Class

(36:20) - Section 4 - Create the 'UsersToCategory.js' file

(44:13) - Test and Debug

Links
---------
If you’d like to help support the channel,

Buy me a Coffee ☕️
https://www.buymeacoffee.com/GavinLon

PayPal
https://www.paypal.com/paypalme/GavinLon

BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns


Copy Code from GitHub
--------------------------------------
UserModel.cs
https://github.com/GavinLonDigital/Te...

UsersCategoryListModel.cs
https://github.com/GavinLonDigital/Te...

_UsersListViewPartial.cshtml
https://github.com/GavinLonDigital/Te...

UsersToCategory Index View
https://github.com/GavinLonDigital/Te...

UsersToCategoryController.cs
https://github.com/GavinLonDigital/Te...

UsersToCategory.js
https://github.com/GavinLonDigital/Te...
----

Full playlist - Let's Build an ASP .NET Core MVC Web Application on .Net 5
   • Part 1 - Overview - Let's Build an ASP.NET...  

Migration (add the admin account) Code on GitHub
https://github.com/GavinLonDigital/Te...

C# Asynchronous Programming Video Series
   • C# Asynchronous Programming (Part 1 - Asyn...  

GUID Generator
https://www.guidgenerator.com

Attributes
   • C# Attributes (Predefined and Custom Attri...  

Part 1
   • Part 1 - Overview - Let's Build an ASP.NET...  

Part 3
   • Part 3 - Database Design - Let's Build an ...  

Part 13
   • Part 13 - Datepicker Integration - Let's B...  

Part 14
   • Part 14 - Form Validation - Let's Build an...  

Part 15
   • Part 15 - The Admin Account (Identity) - L...  

Part 16
   • Part 16 - Custom Login Dialog (Identity) -...  

Part 17
   • Part 17 - Registration Dialog (Identity) -...  

Part 18
   • Part 18 - Registration Dialog (Part 2) - L...  

Full playlist - C# for Beginners Course
   • C# for Beginners - Part 1 - Introduction t...  

Full playlist - Advanced C# Course
   • Introduction - Advanced C# Tutorial (Part 1)  

C# Asynchronous Programming Playlist
   • C# Asynchronous Programming (Part 1 - Asyn...  

Additional Information
------------------------------------
GetHashCode()
https://docs.microsoft.com/en-us/dotn...

IActionResult
https://docs.microsoft.com/en-us/aspn...

BootStrap 4 Grid
https://getbootstrap.com/docs/4.6/lay...

Anti-forgery token - Prevent Cross Site Request Forgeries
https://docs.microsoft.com/en-us/aspn...



GitHub
-----------
Latest Code
https://github.com/GavinLonDigital/Te...

PDF Document - Database Design
https://github.com/GavinLonDigital/MV...


All music in this video was created by Gavin Lon