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()); }
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")); } }
// // GET: /Sala/ public ActionResult Index() { var listado = proxy.ListarSala(); return(View(listado)); }