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