public ActionResult ExcluirReserva(int id) { ReservaController controller = new ReservaController(); var registro = controller.Buscar(id); return(View(registro)); }
public Reserva() { InitializeComponent(); controller = new ReservaController(); IniciarReserva(); }
public HistoricoReserva() { InitializeComponent(); controller = new ReservaController(); ConsultarHistorico(); }
public TelaReservas() { InitializeComponent(); mesaController = new MesaController(); reservaController = new ReservaController(); ClearControls(); GetAll(); }
public ActionResult ExcluirReservaConfirmar(int id) { ReservaController controller = new ReservaController(); controller.Excluir(id); return(RedirectToAction("ListaReserva")); }
//----- Reserva public ActionResult ListaReserva() { //Instancia a controller de RN (SERVICE) ReservaController controller = new ReservaController(); List <Reserva> lst = controller.Listar(); return(View(lst)); }
public ActionResult InserirReserva(Reserva registro) { if (!ModelState.IsValid) { return(View(registro)); } ReservaController controller = new ReservaController(); controller.Inserir(registro); return(RedirectToAction("ListaReserva")); }
public TelaReservasFinalizadas() { InitializeComponent(); reservaController = new ReservaController(); GetAll(); }