public ActionResult GetQueryableOrganizationSelectTreeItem(Guid editableAncestorOrganizationId, Guid organizationId) { string jsonTree = string.Empty; try { var organizations = HttpRuntime.Cache.GetOrInsert("Organizations", () => OrganizationDataAccessor.GetAllOrganizations()); RequestResult result = OrganizationDataAccessor.GetQueryableOrganizationTreeItem(organizations, editableAncestorOrganizationId, organizationId, Session["Account"] as Account); if (result.IsSuccess) { jsonTree = JsonConvert.SerializeObject((List <TreeItem>)result.Data); } else { jsonTree = string.Empty; } } catch (Exception ex) { jsonTree = string.Empty; Logger.Log(MethodBase.GetCurrentMethod(), ex); } return(Content(jsonTree)); }