Example #1
0
 public DataTable getByMaGV(string id, string pass, string magv)
 {
     if (CheckService.checkID(id, pass) == 1)
     {
         CT_LopHocService ctlhsv = new CT_LopHocService();
         return(ctlhsv.getByMaGV(magv));
     }
     return(null);
 }
Example #2
0
 public int insert(string id, string pass, string malop, string magv)
 {
     if (CheckService.checkID(id, pass) == 1)
     {
         if (CheckService.checkRole(id, 2) == 1 || CheckService.checkRole(id, 0) == 1)
         {
             CT_LopHocService ctlhsv = new CT_LopHocService();
             return(ctlhsv.insert(malop, magv));
         }
     }
     return(0);
 }