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