public static List<Kiosk_Class> GetAllSupervisor() { var dal = new Kiosk_ClassDAL(); var collection = new List<Kiosk_Class>(); foreach (DataRow row in dal.GetAllSupervisor().Rows) { var ins = new Kiosk_Class(); ins.Bind(row); collection.Add(ins); } return collection; }
public static bool InsertSupervisor(string classtype, string supervisor, string admin) { var dal = new Kiosk_ClassDAL(); return dal.InsertSupervisor(classtype, supervisor, admin); }