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 Dashboard()
 {
     if (Session["LoggedUserAccountNumber"] != null)
     {
         HelperTools rateOfExchange = new HelperTools();
         ViewBag.rate = rateOfExchange.GetConversionRate();
         ViewBag.date = rateOfExchange.GetLastTimeUpdated();
         return(View(loggedInUser));
     }
     else
     {
         return(RedirectToAction("Login"));
     }
 }
Ejemplo n.º 3
0
 public ActionResult Dashboard()
 {
     if (Session["LoggedUserAccountNumber"] != null)
     {
         HelperTools rateOfExchange = new HelperTools();
         ViewBag.rate = rateOfExchange.GetConversionRate();
         ViewBag.date = rateOfExchange.GetLastTimeUpdated();
         return View(loggedInUser);
     }
     else
     {
         return RedirectToAction("Login");
     }
 }
Ejemplo n.º 4
0
        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);
        }