private static void AddSummaryItems(CaseNavigationGraph graph, List <Summary> summaries)
 {
     if (summaries != null)
     {
         summaries.ForEach(summary => graph.NavigationItems.Add(CreateSummaryNavigationItem(summary)));
     }
 }
 private static void AddReportItems(CaseNavigationGraph graph, List <Report> reports)
 {
     if (reports != null)
     {
         reports.ForEach(report => graph.NavigationItems.Add(CreateReportNavigationItem(report)));
     }
 }
        /// <summary>
        /// Create a New CaseNavigationGraph from the Case object.
        /// </summary>
        private static CaseNavigationGraph CreateCaseGraph(Domain.Summaries.Case.Case cCase)
        {
            var graph = new CaseNavigationGraph()
            {
                NavigationItems = new List <CaseNavigationItem>()
            };

            if (cCase == null)
            {
                return(graph);
            }

            graph.CaseId     = cCase.Id;
            graph.CaseNumber = cCase.Number;

            return(graph);
        }