public static Kiosk SelectKioskByID(int id) { var dal = new KioskDAL(); DataRow row = dal.SelectKioskByID(id); // var ins = new Kiosk(); ins.Bind(row); return(ins); }
public static List<Kiosk> GetAllKiosk() { var dal = new KioskDAL(); var collection = new List<Kiosk>(); foreach(DataRow row in dal.GetAllKiosk().Rows){ // var instance = new Kiosk(); instance.Bind(row); collection.Add(instance); } return collection; }
public static List <Kiosk> GetAllKiosk() { var dal = new KioskDAL(); var collection = new List <Kiosk>(); foreach (DataRow row in dal.GetAllKiosk().Rows) { // var instance = new Kiosk(); instance.Bind(row); collection.Add(instance); } return(collection); }
public static Kiosk SelectKioskByID(int id) { var dal = new KioskDAL(); DataRow row = dal.SelectKioskByID(id); // var ins = new Kiosk(); ins.Bind(row); return ins; }