示例#1
0
        public bool LogIn(string ten, string mk)
        {
            TaiKhoan tkSoSanh = TaiKhoanDAL.GetInstance().Read(ten);

            if (tkSoSanh == null)
            {
                return(false);
            }

            return(mk == tkSoSanh.MatKhau);
        }
示例#2
0
 public bool ExistInDatabase(string ma)
 {
     return(TaiKhoanDAL.GetInstance().Read(ma) != null);
 }
示例#3
0
 public TaiKhoan Read(string tenTk)
 {
     return(TaiKhoanDAL.GetInstance().Read(tenTk));
 }
示例#4
0
 public List <TaiKhoan> ReadAllByKeyWord(string key)
 {
     return(TaiKhoanDAL.GetInstance().ReadAllByKeyword(key));
 }
示例#5
0
 public bool Delete(TaiKhoan cd)
 {
     return(TaiKhoanDAL.GetInstance().Delete(cd));
 }
示例#6
0
 public bool Update(TaiKhoan cd)
 {
     return(TaiKhoanDAL.GetInstance().Update(cd));
 }
示例#7
0
 public bool Add(TaiKhoan cd)
 {
     return(TaiKhoanDAL.GetInstance().Add(cd));
 }