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 void InsertKiosk(string name, string location, string remarks, int classid, string kioskcode, string admin) { var dal = new KioskDAL(); dal.InsertKiosk(name, location, remarks, classid, kioskcode, admin); }
public static void UpdateKiosk(int kioskid, string name, string location, string remarks, int classid, string admin) { var dal = new KioskDAL(); dal.UpdateKiosk(kioskid, name, location, remarks, classid, admin); }
public static Kiosk SelectKioskByID(int id) { var dal = new KioskDAL(); DataRow row = dal.SelectKioskByID(id); // var ins = new Kiosk(); ins.Bind(row); return ins; }