public async Task AddPicture(AlbumItem item, MediaFile image) { if (image == null) { return; } AlbumItem newItem = new AlbumItem { IsAddButton = false, IsReceipt = item.IsReceipt, Album = CurrentTransaction.ID, ImageName = Guid.NewGuid().ToString(), Image = new byte[image.GetStream().Length] }; image.GetStream().Read(newItem.Image, 0, newItem.Image.Length); await _azure.UploadImage(newItem); await Refresh(); HockeyApp.MetricsManager.TrackEvent("Goods Added"); //} }