Пример #1
0
        public static Kiosk SelectKioskByID(int id)
        {
            var     dal = new KioskDAL();
            DataRow row = dal.SelectKioskByID(id);
            //
            var ins = new Kiosk();

            ins.Bind(row);

            return(ins);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }