0
I don’t have much practice in programming and am creating a system of registering items like movies, books, games, etc. for a college job. The problem is that I need to use a user manager system so that in the index view of each type of item show only what the user registers, for example:
João registered in his list of films "Os Infiltrados" and "Clube da Luta"; José registered in his list of films "Harry Potter" and "The Lord of the Rings".
When João logs in, he should only show the films he has registered, in the same way that when José logs in, he should only show the films he has registered.
I created the project using "Individual User Account".
Someone would know to help me?
Thank you!
Thanks man, I got to understand the process and I’m applying in my project. It would be more specific where I apply the "Read records" part and which method I put the Controller part into. Thank you!!
– Maycon Amorim
"Read records" usually stays within a Action
Index
or similar. I don’t know if you’re using Scaffolding or doing everything manual, but Visual Studio generates all this cliché code for you. The Controller also goes in the same ActionIndex
. I just did it as an alternative approach.– Leonel Sanches da Silva
I’m using Scaffolding yes. All right, I’ll try here... Thanks so much for the help!!
– Maycon Amorim