Exemplo n.º 1
0
 public static subks getEntity(int id, string style)
 {
     using (DAL.root.subksDAL dal = new DAL.root.subksDAL())
     {
         return(dal.getEntity(id, getTable(style)));
     }
 }
Exemplo n.º 2
0
 public static void inState(int id, bool state, string style)
 {
     using (DAL.root.subksDAL dal = new DAL.root.subksDAL())
     {
         dal.inState(id, state, getTable(style));
     }
 }
Exemplo n.º 3
0
 public static int save(subks m, string style)
 {
     using (DAL.root.subksDAL dal = new DAL.root.subksDAL())
     {
         if (m.id > 0)
         {
             return(dal.update(m, getTable(style)));
         }
         else
         {
             return(dal.save(m, style));
         }
     }
 }