public async Task <IActionResult> Configure()
        {
            var companyId  = (await _settingService.GetSettingAsync(CompanyIdSettingKey))?.Value;
            var contractId = (await _settingService.GetSettingAsync(ContractIdSettingKey))?.Value;

            var model = new FreshAddressNewsletterIntegrationModel();

            model.CompanyId  = companyId;
            model.ContractId = contractId;

            return(View(
                       "~/Plugins/Misc.FreshAddressNewsletterIntegration/Views/Configure.cshtml",
                       model
                       ));
        }
        public async Task <IActionResult> Configure(FreshAddressNewsletterIntegrationModel model)
        {
            if (!ModelState.IsValid)
            {
                return(await Configure());
            }

            await _settingService.SetSettingAsync(CompanyIdSettingKey, model.CompanyId);

            await _settingService.SetSettingAsync(ContractIdSettingKey, model.ContractId);

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

            return(await Configure());
        }