Exemple #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"));
        }
Exemple #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"));
        }