Exemple #1
0
        public RelationshipDiagramServiceResponse GetRelationshipDiagramInfo(Guid accountId, List <string> additionalColumnNames)
        {
            var response = new RelationshipDiagramServiceResponse();

            try {
                response.ParentId = GetParentAccount(accountId);
                response.Accounts = GetChildAccounts(response.ParentId, additionalColumnNames);
            }
            catch (Exception e) {
                response.Exception = e;
            }
            return(response);
        }
Exemple #2
0
        public RelationshipDiagramServiceResponse GetRelationshipDiagramInfo(Guid accountId,
                                                                             List <string> additionalColumnNames)
        {
            var response = new RelationshipDiagramServiceResponse();

            try {
                Guid rootParentAccountId = GetRootParentAccount(accountId);
                response.ParentId = rootParentAccountId;
                response.Accounts = rootParentAccountId.Equals(Guid.Empty)
                                        ? new List <AccountInfo>()
                                        : GetRelationshipDiagramAccounts(accountId, rootParentAccountId, additionalColumnNames);
            } catch (Exception e) {
                response.Exception = e;
            }
            return(response);
        }