public async Task <Cluster> GetNearestClusterAsync(double[] prediction) { var clusters = await _clusterRepository.GetAllAsync(); var nearest = await GetNearestClusterCoreAsync(prediction, clusters); var nearestWithPhotos = await _clusterRepository.GetWithPhotosAsync(nearest.Id); return(nearestWithPhotos); }