public Boolean KiemTraThongTinDangNhap(DTO_Login dto_dangnhap) { DataTable dt = dal_dangnhap.LayThongTinUser(dto_dangnhap); if (dt.Rows.Count == 1) return true; return false; }
public DataTable LayThongTinUser(DTO_Login dangnhap) { return helper.GetDataTable("select TenDangNhap, MatKhau, Quyen from NhanVien where TenDangNhap = '"+dangnhap.TenDangNhap+"' and MatKhau = '"+dangnhap.MatKhau+"'"); }
public DataTable LayDanhSachTheoID(DTO_Login dto_dangnhap) { return dal_dangnhap.LayThongTinUser(dto_dangnhap); }