public ActionResult EmailSettings(SmtpSettings model) { if (ModelState.IsValid) { var settings = _settingsService.SetByKey <SmtpSettings>(Constants.SMTPSettingsKey, model); TempData["SuccessMessage"] = "Settings save successful."; } return(View(model)); }
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)); }