public void ListarReserva() { ListarReservas.ItemsSource = ReservaDAO.ListarReservas(); ListarReservas.CanUserAddRows = false; ListarReservas.IsReadOnly = true; ListarReservas.AutoGenerateColumns = false; ListarReservas.CanUserDeleteRows = false; }
public IHttpActionResult ListarReservas() { try { ReservaDAO reservaDAO = new ReservaDAO(); return(Ok(reservaDAO.ListarReservas())); } catch (Exception ex) { return(InternalServerError(ex)); } }
public IActionResult ReservasHistorico() { return(View(_reservaDAO.ListarReservas())); }