Ejemplo n.º 1
0
        public ActionResult Success(string BadgeLevel, string CardHolderEmailAddress)
        {
            int    badgeID = badgeServices.Create(BadgeLevel);
            string userID  = userServices.Create(CardHolderEmailAddress, badgeID);

            badgeServices.AssignBadgeToUser(badgeID, userID);
            emailServices.SendAccountEmail(badgeID, CardHolderEmailAddress);

            ViewBag.badgeID      = badgeID;
            ViewBag.emailAddress = CardHolderEmailAddress;

            return(View());
        }