Esempio n. 1
0
        public JsonResult GetConfirmationCode(string account)
        {
            if (!AuthorizationProvider.CanViewRevenue())
            {
                return(Forbidden());
            }

            var provider = new ReservationRevenueProvider(_dbContext);
            var data     = provider.GetConfirmationCode(account);

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