public IActionResult Charge(AccountsChargeInputModel model) { var account = this.accountsService.GetAccountById(model.Id); model.IsoCode = account.Currency.IsoCode; if (model.Type == TransferType.BankCloud) { if (!ModelState.IsValid) { return(this.View(model)); } return(this.RedirectToAction("ChargeBankCloud", "Accounts", model)); } //TODO: For additional pay services //if (model.Type == TransferType.Card) //{ //} return(Redirect("Accounts")); }
public IActionResult ChargeBankCloud(AccountsChargeInputModel model) { TempData.Put("charge", model); return(this.View()); }