Esempio n. 1
0
        public async Task <IActionResult> Configure(ContactUsConfigModel model)
        {
            await _settingService.SaveSettingAsync(ContactUsWidgetSettings.FromModel(model));

            _notificationService.SuccessNotification(await _localizationService.GetResourceAsync("Admin.Plugins.Saved"));

            return(Configure());
        }
Esempio n. 2
0
 internal static ContactUsWidgetSettings FromModel(ContactUsConfigModel model)
 {
     return(new ContactUsWidgetSettings()
     {
         ContactUsEmail = model.ContactUsEmail,
         AdditionalEmails = model.AdditionalEmails,
         IsEmailSubmissionSkipped = model.IsEmailSubmissionSkipped
     });
 }