Exemplo n.º 1
0
        public IEnumerable <Photo> MostUsed()
        {
            var photos = _context.Photos.Where(photo => MediaContext.NumberOfPhotosInCity(photo.Geolocation.City) > 1);

            return(photos.ToArray());
        }