Exemplo n.º 1
0
        public JsonResult Retrieve(DateTime beginDate, DateTime endDate)
        {
            if (!AuthorizationProvider.CanViewRevenue())
            {
                return(Forbidden());
            }

            ReservationProvider dataProvider = new ReservationProvider(_dbContext);
            var reservations = dataProvider.Retrieve(beginDate, endDate);

            return(Json(reservations, JsonRequestBehavior.AllowGet));
        }