public static bool CheckDaTimThay(string BienSoXe) { try { using (DataSetOBJTableAdapters.QueriesTableAdapter Adap = new DataSetOBJTableAdapters.QueriesTableAdapter()) Adap.SP_CheckDaTimThay(BienSoXe); return true; } catch { return false; } }
public static bool ThemXe(XeMat Xe, ChuXe People) { try { using(DataSetOBJTableAdapters.QueriesTableAdapter Adap = new DataSetOBJTableAdapters.QueriesTableAdapter()) Adap.SP_ThemXe ( Xe.BienSoXe, Xe.SoMay, Xe.SoKhung, Xe.LoaiXe, Xe.MauXe, People.CMNDSoHuu, Xe.NoiDangKy, People.HoTen, People.DiaChi, People.DienThoai, People.NgaySinh ); return true; } catch { return false; } }
public static bool TaoTaiKhoan(string ID, string Pass) { try { using (DataSetOBJTableAdapters.QueriesTableAdapter Adap = new DataSetOBJTableAdapters.QueriesTableAdapter()) Adap.SP_TaoTaiKhoan(ID,Pass); return true; } catch { return false; } }