Beispiel #1
0
        // GET: Item/Details/5
        public async Task <ActionResult> Details(int id)
        {
            var surl = await GalleryController.GetSurl();

            var request = new ImageDataRequest(id);
            var rawData = await request.GetItemData(surl);

            var goodData = GoodItemData.CreateFromItemInformation(rawData);

            return(View(goodData));
        }
Beispiel #2
0
        private static async Task <GoodItemData> GetItemData(string surl, int itemId)
        {
            var request = new ImageDataRequest(itemId);
            var rawData = await request.GetItemData(surl);

            var goodData = GoodItemData.CreateFromItemInformation(rawData);

            return(goodData);
            ////galleryItemInfo.Name = goodData.Name;
            ////galleryItemInfo.Artist = goodData.Artist;
            ////galleryItemInfo.ImageUrl = goodData.ImageUrl;
        }