public JsonResult UpdateScopeOnInitial(Int64 SenderEntityID = 1, Int64 RecipientEntityID = 1) { workspaceInfo = new WorkspaceInfo(); workspaceInfo.GetWorkspaceInformation(); workspaceInfo.SetSession(HttpContext.Session); ScopeResult scopeResult = new ScopeResult(); using (SqlConnection connection = workspaceInfo.GetAndOpenSQLConnection()) { scopeResult.Senders = workspaceInfo.GetTopSenders(connection, workspaceInfo.SocialNetworkDatabaseName); scopeResult.Recipients = workspaceInfo.GetTopRecipients(connection, workspaceInfo.SocialNetworkDatabaseName); scopeResult.Pairs = workspaceInfo.GetTopSenderRecipientPairs(connection, workspaceInfo.SocialNetworkDatabaseName); } return Json(scopeResult, JsonRequestBehavior.AllowGet); }