Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var client = new FlickrService.FlickrService();

            var photos = client.GetRecentPhotos();

            foreach (var photo in photos)
            {
                Console.WriteLine(photo.ImageUrl);
            }

            Console.ReadLine();
        }
Exemplo n.º 2
0
        //
        // GET: /Home/
        public ActionResult Index()
        {
            var client = new FlickrService.FlickrService();

            var photos = client.GetRecentPhotos();

            ViewData["flickrphotos"] = photos;

            List<string> urls = new List<string>();
            foreach (var photo in photos)
                urls.Add(photo.ImageUrl);

            ViewData["photos"] = urls;

            return View();
        }