Ejemplo n.º 1
0
        public ActionResult NotificationSignup(string firstName, string lastName, string email)
        {
            var db = new HockeySignupsDb(_connectionString);
            var ns = new NotificationSignup
            {
                Email     = email,
                FirstName = firstName,
                LastName  = lastName
            };

            db.AddNotificationSignup(ns);
            return(View("NotificationSignupConfirmation"));
        }
Ejemplo n.º 2
0
        public ActionResult NotificationSignup(string firstName, string lastName, string email)
        {
            var db = new HockeySignupsDb(Properties.Settings.Default.ConStr);
            var ns = new NotificationSignup
            {
                Email     = email,
                FirstName = firstName,
                LastName  = lastName
            };

            db.AddNotificationSignup(ns);
            return(View("NotificationSignupConfirmation"));
        }