Exemplo n.º 1
0
        public IActionResult RewardPage()
        {
            dynamic dynamicModel = new ExpandoObject();

            var customer = SessionHelper.GetObjectFromJson <Customer>(HttpContext.Session, "User");

            dynamicModel.ResturantGrid = rewardsManager.GetAllResturants();
            dynamicModel.RewardGrid    = rewardsManager.GetAllRewards(customer.ID);

            return(View(dynamicModel));
        }