Пример #1
0
        static void ListPuns()
        {
            var puns = _service.GetPuns();

            foreach (var pun in puns)
            {
                Console.WriteLine("{0}) {1}", pun.PunID, pun.Title);
            }
            Console.WriteLine("---------------");
        }
Пример #2
0
 public Pun[] GetPuns()
 {
     return(_service.GetPuns());
 }
Пример #3
0
        public Pun[] GetPuns()
        {
            var service = new PunDataService();

            return(service.GetPuns());
        }