Example #1
0
 public ActionResult EmailSettings(SmtpSettings model)
 {
     if (ModelState.IsValid)
     {
         var settings = _settingsService.SetByKey <SmtpSettings>(Constants.SMTPSettingsKey, model);
         TempData["SuccessMessage"] = "Settings save successful.";
     }
     return(View(model));
 }
Example #2
0
 public ActionResult EmailSettings(SmtpSettings model, bool UseSSL)
 {
     if (ModelState.IsValid)
     {
         model.UseSSL = UseSSL;
         var settings = _settingsService.SetByKey <SmtpSettings>(model);
         ShowMessage("Settings save successful.", Framework.Core.Mvc.Views.MessageType.Success);
     }
     return(View(model));
 }