private PlaceItem CreatePlaceItem(VisitedPlace place) { var titem = new PlaceItem(place.Id); // get photos count... var photos = _photoStore.GetPhotosByTrip(place.Id); titem.DisplayName = place.PlaceName; titem.NumPictures = photos.Count; titem.CoverPhoto = photos.First(); return(titem); }
private IHighliteItem CreateHighliteItem(PlaceItem titem) => DoCreateHighliteItem(titem.PlaceId, titem.CoverPhoto, titem.NumPictures, HighliteTarget.Trip, titem.DisplayName);