public async Task <IActionResult> Configure(ContactUsConfigModel model) { await _settingService.SaveSettingAsync(ContactUsWidgetSettings.FromModel(model)); _notificationService.SuccessNotification(await _localizationService.GetResourceAsync("Admin.Plugins.Saved")); return(Configure()); }
internal static ContactUsWidgetSettings FromModel(ContactUsConfigModel model) { return(new ContactUsWidgetSettings() { ContactUsEmail = model.ContactUsEmail, AdditionalEmails = model.AdditionalEmails, IsEmailSubmissionSkipped = model.IsEmailSubmissionSkipped }); }