Example #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";
 }
        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);
        }
 public MovieController()
 {
     dbMovie = new MoviesRepository();
     dbPerson = new PersonRepository();
     dbUser = new UsersRepository();
 }
 public UserController()
 {
     dbUser = new UsersRepository();
     dbMovie = new MoviesRepository();
 }
        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;
        }