コード例 #1
0
        public async Task <IActionResult> Details(long id)
        {
            var clusters = await _clusterService.Search();

            var otherClusters = (IList <Cluster>)clusters.Where(c => c.ID != id).ToList();

            return(View(new ClusterModel
            {
                ID = id,
                Data = await _clusterService.GetByID(id),
                OClusters = otherClusters
            }));
        }