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 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); }