Beispiel #1
0
        public ActionResult TaotaiKhoan(string Username, string Password)
        {
            TaiKhoan tk = new TaiKhoan();

            tk.UserName = Username;
            tk.MatKhau  = Encrypter.MD5Hash(Password);
            tk.Remember = true;
            if (db.Insert(tk))
            {
                return(Json(new { success = true, ms = "Thêm thành công" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { success = false, ms = "Thêm khong thành công" }, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #2
0
 public Boolean Insert(TaiKhoan tk)
 {
     return(db.Insert(tk));
 }