Esempio n. 1
0
        public SettingsViewModel SaveBlogSettings(SettingsViewModel settings)
        {
            var encryptedSmtpPassword = _protector.Protect(settings.SmtpPassword);

            _dataProvider.UpdateBlog(settings.BlogId, settings.BlogName, settings.Description, settings.PostsPerPage,
                                     settings.SmtpUsername, encryptedSmtpPassword, settings.SmtpHost, settings.SmtpPort,
                                     settings.EmailPrefix, settings.SmtpUseSsl, settings.SendCommentEmail, settings.UseReCaptcha,
                                     settings.CaptchaKey, settings.CaptchaSecret);
            return(GetBlogSettings());
        }