コード例 #1
0
        public virtual ActionResult Editar(int id)
        {
            var reserva = TReservation.Load(id);

            ViewBag.Client = TClient.ListAll().ToSelectList(x => x.Id, x => x.Name);
            ViewBag.Iten   = TMovie.ListAll().ToSelectList(x => x.Id, x => x.Name);
            ViewBag.Sale   = TSale.ListAll().ToSelectList(x => x.Id, x => x.EnumStatusSale);
            return(View(reserva));
        }
コード例 #2
0
        public virtual ActionResult ListarCliente(int id)
        {
            var reservation = TReservation.Load(id);

            return(PartialView("_listar-reserva", reservation));
        }
コード例 #3
0
        public virtual ActionResult Excluir(int id)
        {
            var reserva = TReservation.Load(id);

            return(PartialView("_excluir", reserva));
        }