public ActionResult MakeWithDrawal() { ViewBag.Message = "In this form you can fill in the details for making a withdrawal from your Cryptobank account"; HelperTools h = new HelperTools(); ViewBag.BitcoinRate = h.GetConversionRate(); ViewBag.LastUpdated = h.GetLastTimeUpdated(); var model = new DepositWithdrawalInfo(); model.IBAN = loggedInUser.accountnumber; return View(model); }
public ActionResult ConfirmDepositWithDrawal(DepositWithdrawalInfo m) { CryptoBankServiceSoapClient x = new CryptoBankServiceSoapClient(); x.MakeDepositWIthdrawal(loggedInUser.accountnumber, m.amount, m.deposit); return View("~/Views/Home/Index.cshtml"); }