Exemple #1
0
 public static subju getEntity(int id)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         return(dal.getEntity(id));
     }
 }
Exemple #2
0
 public static void inState(int id, bool state)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         dal.inState(id, state);
     }
 }
Exemple #3
0
 public static int save(subju m)
 {
     using (DAL.root.subjuDAL dal = new DAL.root.subjuDAL())
     {
         if (m.id > 0)
         {
             return(dal.update(m));
         }
         else
         {
             return(dal.save(m));
         }
     }
 }