Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public DataTable getAll(string id, string pass)
        {
            if (CheckService.checkID(id, pass) == 1)
            {
                DangKyService dk = new DangKyService();


                return(dk.getAll());
            }
            return(null);
        }
Exemplo n.º 3
0
 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);
 }