Exemplo n.º 1
0
        public JsonResult GetGraphGeneration20(int Levels = 2, int SenderEntityID = -1, int RecipientEntityID = -1)
        {
            workspaceInfo = new WorkspaceInfo();
            workspaceInfo.GetWorkspaceInformation();
            workspaceInfo.SetSession(HttpContext.Session);

            CytoscapeAndScopeData cytoscapeAndScopeData;

            using (SqlConnection connection = workspaceInfo.GetAndOpenSQLConnection())
            {
                cytoscapeAndScopeData = workspaceInfo.GetNodesAndEdgesTopCommunicatorsGeneration20(Levels, SenderEntityID, RecipientEntityID, connection, workspaceInfo.SocialNetworkDatabaseName);
            }

            return Json(cytoscapeAndScopeData, JsonRequestBehavior.AllowGet);
        }