Example #1
0
 public ActionResult Actiontakemoney(string code, string money)
 {
     CheckLogin.Service trutien = new CheckLogin.Service();
     trutien.takemoney(code, money);
     ViewBag.Ok = "THANH CONG";
     return(View("takemoney"));
 }
Example #2
0
 public ActionResult transfer(string code, string code2, string money)
 {
     CheckLogin.Service trutien = new CheckLogin.Service();
     ViewBag.Code  = code;
     ViewBag.Code2 = code2;
     trutien.transfer(code, code2, money);
     return(View("Transfermoney"));
 }
Example #3
0
 // GET: Account
 public ActionResult Index(string username, string pass)
 {
     CheckLogin.Service wc = new CheckLogin.Service();
     if (wc.CheckLogin(username, pass))
     {
         Response.Write("ok");
         return(View("Welcome"));
     }
     else
     {
         Response.Write("not ok");
         return(View());
     }
 }
Example #4
0
        public ActionResult About(string user, string pass)
        {
            CheckLogin.Service check = new CheckLogin.Service();

            if (check.CheckLogin(user, pass))
            {
                string   account = check.getAccount(user).ToString();
                string[] acc     = account.Split('#');
                ViewBag.Code    = acc[0];
                ViewBag.Name    = acc[2];
                ViewBag.Current = acc[3];
                return(View("Welcome"));
            }
            else
            {
                ViewBag.Message = "dang nhap  khong thanh cong";
            }

            return(View("index"));
        }