public ActionResult Confirmation(int crewGameSuggestionId)
        {
            var cgs = facade.GetCrewGameSuggestionGateway().Get(crewGameSuggestionId);

            Session["cgs"] = cgs;

            UserDTO user = Auth.user;
            PlatformGameDTO pfGame = cgs.PlatformGame;
            CrewBuyConfirmationVM cbcViewModel = new CrewBuyConfirmationVM(user, pfGame, cgs.Crew);
            return View(cbcViewModel);
        }
Esempio n. 2
0
        public ActionResult Confirmation(int crewId, int discount, DateTime expDate, DateTime expTime, int platformGameId)
        {
            CrewGameSuggestionDTO cgs = new CrewGameSuggestionDTO() { CrewId = crewId,
                Discount = discount, ExpirationDate = expDate, ExpirationTime = expTime,
                PlatformGameId = platformGameId };

            UserDTO user = Auth.user;
            PlatformGameDTO pfGame = facade.GetPlatformGameGateway().Get(platformGameId);
            CrewDTO crew = facade.GetCrewGateway().Get(crewId);
            CrewBuyConfirmationVM viewModel = new CrewBuyConfirmationVM(user, pfGame, crew);

            Session["CrewGameSuggestion"] = cgs;

            return View(viewModel);
        }