public IActionResult DeleteMerchantVolatilitySettingsDialog(string merchantId)
        {
            var viewModel = new DeleteMerchantVolatilitySettingsDialogViewModel
            {
                Caption    = "Delete volatility settings for",
                MerchantId = merchantId
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> DeleteMerchantVolatilitySettings(
            DeleteMerchantVolatilitySettingsDialogViewModel vm)
        {
            try
            {
                await _payMerchantClient.Settings.DeleteVolatilitySettingsAsync(vm.MerchantId);
            }
            catch (ClientApiException e)
            {
                return(this.JsonFailResult(e.Message, ErrorMessageAnchor));
            }

            return(this.JsonRequestResult("#merchantVolatilitySettingsList",
                                          Url.Action("MerchantVolatilitySettingsList", new { SelectedMerchant = vm.MerchantId })));
        }