public async Task LoadImages(IList <int> lst) { foreach (var id in lst) { try { var orp = Orphans.FirstOrDefault(o => o.Id == id); var img = await _apiClient.GetImage(orp.FacePhotoURI, PhotoSize, PhotoCompressRatio); if (img == null) { img = _translateService.IsBoy(orp.Gender) ? new Bitmap(Properties.Resources.UnknownBoyPic, PhotoSize) : new Bitmap(Properties.Resources.UnknownGirlPic, PhotoSize); } UpdateOrphanPhoto(orp.Id, img); } catch { } } }