public static subks getEntity(int id, string style) { using (DAL.root.subksDAL dal = new DAL.root.subksDAL()) { return(dal.getEntity(id, getTable(style))); } }
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)); } }
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)); } } }