public ActionResult GetEditableOrganizationSelectTreeItem(Guid editableAncestorOrganizationId, Guid organizationId) { string jsonTree = string.Empty; try { var organizationList = HttpRuntime.Cache.GetOrInsert("Organizations", () => OrganizationDataAccessor.GetAllOrganizations()); RequestResult result = OrganizationDataAccessor.GetEditableOrganizationTreeItem(organizationList, 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)); }