Example #1
0
        public ActionResult TetrisRevenue(int Id)
        {
            if (!AuthorizationProvider.CanEditRevenue())
            {
                return(Forbidden());
            }

            var model    = new ResevationTetrisModel();
            var provider = new ReservationRevenueProvider(_dbContext);

            model.OldPropertyCode = provider.GetPropertyCodeById(Id);
            model.ReservationId   = Id;
            ViewBag.Title         = "Change Reservation";
            return(PartialView("_ReservationTetrisPartial", model));
        }