Part 21 - Logged on Member - Let's Build an ASP.NET Core MVC Web Application on .NET 5

preview_player
Показать описание
In this video we create the functionality pertaining to the data displayed to a member after logging on to the system.

Part 1 - (5:47) - Create the ‘CategoryItemDetailsModel’ View Model, the ‘GroupedCategoryItemsByCategoryModel’ View Model, and the 'CategoryDetailsModel' View Model.

Part 2 - (8:55) - Update the Home Controller Class

Part 3 - (19:48) - Update the Home Index view

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

Buy me a Coffee ☕️

PayPal

BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns

Copy Code from GitHub
--------------------------------------

Home Index View (Default Area)

----

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

Migration (add the admin account) Code on GitHub

GUID Generator

Attributes

Part 1

Part 3

Part 18

Part 19

Part 20

Full playlist - C# for Beginners Course

Full playlist - Advanced C# Course

C# Asynchronous Programming Playlist

Additional Information
------------------------------------
GetHashCode()

IActionResult

BootStrap 4 Grid

Anti-forgery token - Prevent Cross Site Request Forgeries

Bootstrap 4 Cards

Bootstrap 4 Collapse

GitHub
-----------
Latest Code

PDF Document - Database Design
Рекомендации по теме
Комментарии
Автор

Another good tutorial and keep following up your useful video. Thank you once again :)

ckone-mindlearn
Автор

Another good tutorial and keep following up your useful video. Thank you :)

ckone-mindlearn
Автор

Hi Gavin,

As always, thanks for creating such informative content.

I have doubt (25:07), in the Home/Index view page, it was been written as

" <h5 class="card-title mt-2">
</h5>"

But in Areas/Admin/Content, we have no Index method or Index View Page for Content, then this wouldn't work right ? In the upcoming videos in the playlist are you implementing this ( but couldn't find the code in github) or was that missed?

deanambrox
Автор

Hi, is there any way to display the categoryitems in a grid, rather than a list?

David-qujz
Автор

I'm doing a little extra to the Login and Register dialogues, by adding an IEnumerable of External Login providers (Containing for example Facebook and Twitter). I'd like to hear what your approach to this would be? Since I'm having trouble passing a list of External Login providers, to the PartialView on the Home Index view. Thanks for the awesome videos!

rasmusgraahedestrunge
Автор

Also, how do you insert photos into the database?

David-qujz
Автор

Hello, Mr Lon. In my project in the HomeController'method named there is only one (instead eight elements) returned in the list of CategoryItemDetailsModel. When I remove "join content in _context.Content on catItem.Id equals content.CategoryItem.Id", result is what I expect. Thank you for your efforts!

bobione
Автор

categoryItemDetailsModels = await didn't work on mine since Id is an integer.
Solution was:
var userId = _userManager.GetUserId(User);

catayasericjay
visit shbcf.ru