public bool DoiMatKhau(TaiKhoanSinhVienModel sv)
        {
            string message = "";
            var    data    = Execute("sp_DoiMatKhauSinhVien", out message, new Dictionary <string, object> {
                { "tenDangNhap", sv.TenDangNhap.Trim() },
                { "matKhau", sv.MatKhauMoi.Trim() }
            });

            return(data);
        }
 public ActionResult DoiMatKhau(TaiKhoanSinhVienModel sv)
 {
     try
     {
         TaiKhoanSinhVienDAL tk = new TaiKhoanSinhVienDAL();
         if (tk.DoiMatKhau(sv))
         {
             ViewBag.ErrorMessage = "Cập Nhật Thành Công";
         }
         else
         {
             ViewBag.ErrorMessage = "Cập Nhật Không Thành Công";
         }
     }catch (Exception e)
     {
         ViewBag.ErrorMessage = "Cập Nhật Không Thành Công";
     }
     return(View("ThongTinTaiKhoan"));
 }
 public ActionResult ThayDoimatKhau(TaiKhoanSinhVienModel tksv)
 {
     return(View());
 }