public ActionResult DepositFromBank(FormCollection form) { if (Session["AccountLogged"] == null) { return(RedirectToAction("Login", "Home")); } // Guid accountID, string isType, string walletAddress, decimal luongTienNap if (form["diaChiVi"] != "") { var luongtienNap = decimal.Parse(form["luongTienNap"]); var findWallet = walletService.FindWalletByWalletAddress(form["diaChiVi"]); //var accInside = accountService.FindUserById(Guid.Parse(form["NapTienAccountID"])); var result = bankServices.NapTien(findWallet, luongtienNap); if (result) { ViewBag.YourColorNapTien = "green"; ViewBag.NapTienResult = "Nạp tiền thành công"; return(View("Close")); } } ViewBag.YourColorNapTien = "red"; ViewBag.NapTienResult = "Nạp tiền thất bại"; return(View("Close")); }