I'm quite new to ASP.NET MVC5. I tried to build a Booking application with Users and Admin. A User can register themselves, and book items, show their own booking information using their own profile (after login).
I want Users to be able to log in to their profile and create/read their own booking. They should only be authorized to their own profile after login. The Admin should have access to all of the controller.
I tried to find a tutorial on doing this but I can only restrict the access to a controller based on a role only (eg; Admin), but not by specific User with their own Id (eg; User1 can only access User1 information).
I appreciate any kind of response. Thank you very much.