Esempio n. 1
0
        public ActionResult DoiMatKhau(string Password)
        {
            matkhausesion ds = (matkhausesion)Session["matkhau_Session"];
            TaiKhoan      tk = new TaiKhoan();

            tk.UserName = ds.tentaikhoan;
            tk.MatKhau  = Encrypter.MD5Hash(Password);
            tk.Remember = true;
            if (db.Update(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));
            }
        }
Esempio n. 2
0
 public Boolean Update(TaiKhoan tk)
 {
     return(db.Update(tk));
 }