public static List <NodeDTO> GetAccountTreeItems() { var nodes = new List <NodeDTO>(); try { using (_certonaService = new CertonaServiceClient()) { try { var user = FormsAuthenticationWrapper.User; var accountExplorerTreeRequest = new GetAccountExplorerTreeRequest { User = user }; var accountExplorerTreeResponse = _certonaService.GetAccountExplorerTree(accountExplorerTreeRequest); return(accountExplorerTreeResponse.Nodes.ToList()); } catch (TimeoutException exception) { _certonaService.Abort(); } catch (CommunicationException exception) { _certonaService.Abort(); } } } catch (Exception ex) { } return(nodes); }
public PartialViewResult GetAccountTreeview() { try { UserDTO user = FormsAuthenticationWrapper.User; var accountExplorerTreeRequest = new GetAccountExplorerTreeRequest { User = user }; GetAccountExplorerTreeResponse accountExplorerTreeResponse = ForesightService.GetAccountExplorerTree(accountExplorerTreeRequest); return(PartialView("_AccountTreeView", accountExplorerTreeResponse.Nodes.ToList())); } catch (Exception ex) { LoggingHelper.Logger.WriteException(ex); return(PartialView("_AccountTreeView", new List <NodeDTO>())); } }