Пример #1
0
 private static void testConn(DAL conn)
 {
     foreach (Game item in conn.GetGames())
     {
         Console.WriteLine("ID:" + item.ID + " IP:" + item.IP + " FirstUser:"******"ID:" + item.ID + " username:"******" password:"******" money:" + item.money);
     }
 }
Пример #2
0
        /// <summary>
        /// Get Games 
        /// </summary>
        /// <returns></returns>
        public GameWcf[] GetGames()
        {

            DAL dal = new DAL();
            List<GameWcf> ret = new List<GameWcf>();
            foreach (Game g in dal.GetGames())
            {
                ret.Add(gameToWCF(g));
            }
            return ret.ToArray();
        }