public DataTable getByMaHV(string id, string pass, string mahv) { if (CheckService.checkID(id, pass) == 1) { DangKyService dk = new DangKyService(); return(dk.getByMaHV(mahv)); } return(null); }
public DataTable getAll(string id, string pass) { if (CheckService.checkID(id, pass) == 1) { DangKyService dk = new DangKyService(); return(dk.getAll()); } return(null); }
public int insert(string id, string pass, string malop, string mahv) { if (CheckService.checkID(id, pass) == 1) { if (CheckService.checkRole(id, 1) == 1 || CheckService.checkRole(id, 0) == 1) { DangKyService dksv = new DangKyService(); return(dksv.insert(mahv, malop)); } } return(0); }