Example #1
0
        public ActionResult Crear()
        {
            var proxy = new TransaccionesClient();


            var listarPelicula = proxy.ListarPelicula();

            ViewBag.idpelicula = new SelectList(listarPelicula, "idPelicula", "titulo");
            var listarSala = proxy.ListarSala();

            ViewBag.idsala = new SelectList(listarSala, "idSala", "descripcion");

            return(View());
        }
Example #2
0
        public ActionResult Actualizar(int?id)
        {
            var proxy = new TransaccionesClient();

            if (id.HasValue)
            {
                var listarPelicula = proxy.ListarPelicula();
                ViewBag.idpelicula = new SelectList(listarPelicula, "idPelicula", "titulo");
                var listarSala = proxy.ListarSala();
                ViewBag.idsala = new SelectList(listarSala, "idSala", "descripcion");
                var fu = proxy.obtenerFuncion(id.Value);
                return(View(fu));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }
Example #3
0
        //
        // GET: /Sala/
        public ActionResult Index()
        {
            var listado = proxy.ListarSala();

            return(View(listado));
        }