protected void bindDate()
        {
            VodioContainer ve   = new VodioContainer();
            int            temp = Int32.Parse(dt);
            List <Role>    rol  = ve.Movies.Where(a => a.Id == temp).FirstOrDefault().Roles.ToList();

            rols.Clear();
            foreach (Role a in rol)
            {
                MovieRole mr = new MovieRole()
                {
                    Agent = a.Agent.Name,
                    Movie = a.Movie.Title,
                    Name  = a.Name,
                    Id    = a.Id
                };
                rols.Add(mr);
            }

            RolesShow.DataSource = rols;
            RolesShow.DataBind();
        }
Beispiel #2
0
        protected void Load_MovieRole()
        {
            VodioContainer ve   = new VodioContainer();
            int            temp = Int32.Parse(dt);
            List <Role>    ag1  = ve.Movies.Where(a => a.Id == temp).FirstOrDefault().Roles.ToList();

            rols.Clear();
            foreach (Role a in ag1)
            {
                MovieRole mr = new MovieRole()
                {
                    Agent = a.Agent.Name,
                    Movie = a.Movie.Title,
                    Name  = a.Name,
                    Id    = a.Id
                };
                rols.Add(mr);
            }

            //MovRol.DataSource = ag1;
            //MovRol.DataBind();
        }