public ActionResult DepositFromBank(Guid accountID, string isType)
        {
            if (Session["AccountLogged"] == null)
            {
                return(RedirectToAction("Login", "Home"));
            }
            var getWall = walletService.FindWalletByAccountIdAndMoneyType(accountID, isType);

            if (getWall != null)
            {
                return(View(getWall));
            }
            return(View());
        }
        public ActionResult CreateSellAd(string getMoneyType)
        {
            if (Session["AccountLogged"] != null)
            {
                var getUser = accountService.FindUserByUserName(Session["AccountLogged"].ToString());
                if (getUser != null)
                {
                    var getWalletByMoneyType = walletServices.FindWalletByAccountIdAndMoneyType(getUser.AccountID, getMoneyType);
                    ViewBag.GetDiaChiVi = getWalletByMoneyType.WalletAddress.ToString();
                }

                ViewBag.AccountTradeName = Session["AccountLogged"].ToString();
            }

            var getFloorPrice  = cryptocurrencyStoreServices.ShowFloorPrice(getMoneyType);
            var moneyConverted = Convert.ToDecimal(getFloorPrice.ToString()).ToString("#,##");

            ViewBag.getMoney = moneyConverted;
            return(View());
        }
Exemplo n.º 3
0
        public ActionResult FindWallet(string moneyType)
        {
            if (Session["AccountLogged"] != null)
            {
                var getUser = accountService.FindUserByUserName(Session["AccountLogged"].ToString());
                if (getUser != null)
                {
                    var WalletByTwoConditions = _walletServices.FindWalletByAccountIdAndMoneyType(getUser.AccountID, moneyType);
                    return(Json(WalletByTwoConditions.WalletAddress, JsonRequestBehavior.AllowGet));
                }
            }

            return(Json("", JsonRequestBehavior.AllowGet));
        }