public ActionResult BusquedaFilter(int duracion, int anio)
        {
            var peliculaService = new PeliculaService();

            //if(duracion != null && anio != null)
            ViewBag.Message  = "duracion : " + duracion.ToString() + " anio : " + anio.ToString();
            ViewBag.Anio     = anio;
            ViewBag.Duracion = duracion;

            /*
             * VistaPeliculas vistaPeliculas = new VistaPeliculas();
             * vistaPeliculas.listaAnios = new List<int>() { 2005,2006,2013,2014,2015 };
             * vistaPeliculas.listaDuraciones = new List<int>() { 115, 150 };
             * var stringArray = new string[2] { "uno","dos" };
             * ViewBag.Collection = stringArray;
             * ViewData["listDuraciones"] =
             * var intArray = new int[2] { 1, 2 };
             *
             *
             * vistaPeliculas.listaPeliculas = peliculaService.obtenerPeliculas(anio,duracion);
             * return View(vistaPeliculas);*/
            ViewBag.listaAnios = new List <int>()
            {
                2005, 2006, 2013, 2014, 2015
            };
            ViewBag.listaDuraciones = new List <int>()
            {
                115, 150
            };

            var listaPeliculas = peliculaService.obtenerPeliculas(anio, duracion);

            return(View(listaPeliculas));
        }
        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";
            var peliculaService = new PeliculaService();
            var model           = peliculaService.obtenerPeliculas(0, 0);

            return(View(model));
        }
        public ActionResult BusquedaFilter()
        {
            var peliculaService = new PeliculaService();

            //if(duracion != null && anio != null)
            //ViewBag.Message = "duracion : " + duracion.ToString() + "anion : " + anio.ToString() ;

            ViewBag.listaAnios = new List <int>()
            {
                2005, 2006, 2013, 2014, 2015
            };
            ViewBag.listaDuraciones = new List <int>()
            {
                115, 150
            };

            var peliculas = peliculaService.obtenerPeliculas(0, 0);

            return(View(peliculas));
        }