Build a CRUD App with ASP.NET Core 2.2 and SQL Server
This is a step-by-step guide for creating a CRUD application using ASP.NET Core 2.2 and SQL Server.
Build a CRUD App with ASP.NET Core 2.2 and SQL Server
This is a step-by-step guide for creating a CRUD application using ASP.NET Core 2.2 and SQL Server.
Liam Weston
What you have now is okay, but there’s currently no way to keep users from editing other user’s entries. We want to make sure to judge people for their favorite band that they actually entered, right?
This article doesn’t actually explain how to associate a Favorite record with the authenticated user that created it. I assume there is a unique key that can be retrieved from User.Identity to be used as a userId key in the record but it would be helpful to have that explicitly stated in the article.