Example #1
0
        public JsonResult GetDuplicateReservations(DateTime month)
        {
            if (!AuthorizationProvider.CanViewRevenue())
            {
                return(Forbidden());
            }

            var provider = new ReservationRevenueProvider(_dbContext);
            var model    = provider.GetDuplicateReservations(month);

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