Пример #1
0
        public ActionResult Reservations()
        {
            var reservations = ReservationsManager.GetReservations().OrderBy(o => o.Time);

            return(View(reservations));
        }
Пример #2
0
        public async Task <ActionResult <IEnumerable <ReservationDTO> > > GetAllReservations()
        {
            var reservations = await _reservationsManager.GetReservations();

            return(_mapper.Map <List <ReservationDTO> >(reservations));
        }