Beispiel #1
0
        public async System.Threading.Tasks.Task <ActionResult> Security()
        {
            var d = CoinsMarketValueController.GetMarkupWithCoinId();

            foreach (var r in d)
            {
                switch (r.Key)
                {
                case 101: mark101 = r.Value; break;

                case 102: mark102 = r.Value; break;

                case 103: mark103 = r.Value; break;

                case 104: mark104 = r.Value; break;

                case 105: mark105 = r.Value; break;

                case 106: mark106 = r.Value; break;
                }
            }

            try { ViewBag.BTC = "$" + Math.Round((Convert.ToDecimal(objCoin.BTCCurrentPrice()) + Convert.ToDecimal(mark101)), 2); } catch (Exception ex) { ViewBag.BTC = ex.Message; }
            try { ViewBag.ETH = "$" + Math.Round((Convert.ToDecimal(objCoin.ETHCurrentPrice()) + Convert.ToDecimal(mark106)), 2); } catch (Exception ex) { ViewBag.ETH = ex.Message; }
            try { ViewBag.DASH = "$" + Math.Round((Convert.ToDecimal(objCoin.DASHCurrentPrice()) + Convert.ToDecimal(mark102)), 2); } catch (Exception ex) { ViewBag.DASH = ex.Message; }
            try { ViewBag.LTC = "$" + Math.Round((Convert.ToDecimal(objCoin.LTCCurrentPrice()) + Convert.ToDecimal(mark103)), 2); } catch (Exception ex) { ViewBag.LTC = ex.Message; }
            try { ViewBag.ETC = "$" + Math.Round((Convert.ToDecimal(objCoin.ETCCurrentPrice()) + Convert.ToDecimal(mark105)), 2); } catch (Exception ex) { ViewBag.ETC = ex.Message; }
            try { ViewBag.MBC = "$" + Math.Round((Convert.ToDecimal(objCoin.GetMBC_USDCoin()) + Convert.ToDecimal(mark104)), 2); } catch (Exception ex) { ViewBag.MBC = ex.Message; }
            GetQR();

            sample s = new sample {
                TwoFactor = await UserManager.GetTwoFactorEnabledAsync(User.Identity.GetUserId()), GoogleStatus = obj.GetGoogleStatus(User.Identity.GetUserId())
            };
            var sm = ValueController.GetSession(User.Identity.GetUserId());

            ViewBag.IpWhiteList = sm.IPAdressWhiteList;
            SVM.s = s; SVM.Sm = sm;

            Session["EmailStatus"] = s;
            return(View(SVM));
        }