Пример #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 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);
        }
Пример #4
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;
        }