public bool LogIn(string ten, string mk) { TaiKhoan tkSoSanh = TaiKhoanDAL.GetInstance().Read(ten); if (tkSoSanh == null) { return(false); } return(mk == tkSoSanh.MatKhau); }
public bool ExistInDatabase(string ma) { return(TaiKhoanDAL.GetInstance().Read(ma) != null); }
public TaiKhoan Read(string tenTk) { return(TaiKhoanDAL.GetInstance().Read(tenTk)); }
public List <TaiKhoan> ReadAllByKeyWord(string key) { return(TaiKhoanDAL.GetInstance().ReadAllByKeyword(key)); }
public bool Delete(TaiKhoan cd) { return(TaiKhoanDAL.GetInstance().Delete(cd)); }
public bool Update(TaiKhoan cd) { return(TaiKhoanDAL.GetInstance().Update(cd)); }
public bool Add(TaiKhoan cd) { return(TaiKhoanDAL.GetInstance().Add(cd)); }