Пример #1
0
        private static PictureAndMetaData CallTopRatedIMage()
        {
            var api = new API();
            PictureAndMetaData PAMD = new PictureAndMetaData();

            PAMD = api.SelectRightCommand(4);
            return(PAMD);
        }
        private static PictureAndMetaData CallRandomImage()
        {
            var api = new API();
            PictureAndMetaData PAMD = new PictureAndMetaData();

            PAMD = api.SelectRightCommand(3);
            return(PAMD);
        }
Пример #3
0
        private void DisplayDataFromAPI()
        {
            PictureAndMetaData PAMD = CallTopRatedIMage();

            ViewBag.PictureURL = PAMD.url;
            ViewBag.Author     = PAMD.author;
            ViewBag.NameOfPic  = PAMD.name;
            ViewBag.License    = PAMD.license;
            ViewBag.ID         = PAMD.id;
        }