예제 #1
0
 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));
     }
 }
예제 #3
0
 public IActionResult ReservasHistorico()
 {
     return(View(_reservaDAO.ListarReservas()));
 }