Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     dbMovie = new MoviesRepository();
     dbPerson = new PersonRepository();
     urlParams = "&type=json&plot=full&episode=1&lang=en-US&aka=simple&release=full&business=0&tech=0";
     textBox2.Text = "Waiting for command";
 }
Exemplo n.º 2
0
        public List <movie> getRolesByPersonId(int id)
        {
            MoviesRepository dbMovie = new MoviesRepository();

            List <movie> tempList = new List <movie>();

            IQueryable <cast> temp = getCastByPersonId(id);

            foreach (cast c in temp)
            {
                tempList.Add(dbMovie.getMovieById(c.movie_id));
            }

            return(tempList);
        }
Exemplo n.º 3
0
 public MovieController()
 {
     dbMovie = new MoviesRepository();
     dbPerson = new PersonRepository();
     dbUser = new UsersRepository();
 }
Exemplo n.º 4
0
 public UserController()
 {
     dbUser = new UsersRepository();
     dbMovie = new MoviesRepository();
 }
Exemplo n.º 5
0
        public List<movie> getRolesByPersonId(int id)
        {
            MoviesRepository dbMovie = new MoviesRepository();

            List<movie> tempList = new List<movie>();

            IQueryable<cast> temp = getCastByPersonId(id);

            foreach (cast c in temp)
            {
                tempList.Add(dbMovie.getMovieById(c.movie_id));
            }

            return tempList;
        }