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); }
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; }