How to make a relation with each registered user using asp net identity + entity framework

I have Movie.cs model

public class Movie
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Year { get; set; }
        public string Genre { get; set; }                
    }

I`m trying to get each registered user to be able to see his own data for example:

I register and login with user#1(agentmi6) and make some movie,

then register and login with user#2(john) and also add movie,

So my question is how to make the relation so that each user have Movie(s), and to be able to see only that data he enters, in this case movies. Im using the default Web Application project in VS2015 with MVC and the built in identity system.

Thanks for any help.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.