public async Task <IActionResult> Get(string clientId) { var depositViaCreditCardBlocked = (await _clientAccount.GetDepositBlockAsync(clientId)).DepositViaCreditCardBlocked; var isOnMaintenance = await _appGlobalSettingsService.IsOnMaintenanceAsync(); var result = new PaymentMethodsResponse { PaymentMethods = new[] { new PaymentMethod { Name = CashInPaymentSystem.Fxpaygate.ToString(), Assets = _paymentSettings.Fxpaygate.SupportedCurrencies, Available = !depositViaCreditCardBlocked && !isOnMaintenance }, new PaymentMethod { Name = CashInPaymentSystem.CreditVoucher.ToString(), Assets = _paymentSettings.CreditVouchers.SupportedCurrencies, Available = !isOnMaintenance } } }; return(Ok(result)); }