public static void Copy(PhotoCollection response) { Photos._all.Clear(); foreach (var photo in response) { var ep = new EdmundsPhoto(photo.Id, photo.CaptionTranscript, photo.SubType, photo.ShotTypeAbbreviation); foreach (var source in photo.PhotoSources) { ep.Pictures.Add(@"http://media.ed.edmunds-media.com" + source); } Photos.All.Add(ep); } }
public void Copy(PhotoCollection response) { Photos.Clear(); foreach (var photo in response) { var ep = new EdmundsPhoto(photo.Id, photo.CaptionTranscript, photo.SubType, photo.ShotTypeAbbreviation); foreach (var source in photo.PhotoSources) { ep.Pictures.Add(@"http://media.ed.edmunds-media.com" + source); } Photos.Add(ep); } }