private static CaseNavigationItem CreateReportNavigationItem(Report report)
        {
            var item = new CaseNavigationItem()
            {
                ItemId             = report.Id,
                ModuleType         = report.ModuleType,
                Number             = ReportInfoFormatter.FormatReportNumber(report),
                NavigationItemType = report.IsSupplement ? NavigationItemType.SupplementalReport : NavigationItemType.InitialReport,
                IsDraft            = report.IsDraft
            };

            var reportingOfficer = report.Officers.ReportingOfficers().FirstOrDefault(x => string.Compare(x.InvolvementType.Code, OfficerInvolvementTypes.Reporting.Code, StringComparison.InvariantCultureIgnoreCase) == 0);

            if (reportingOfficer == null)
            {
                reportingOfficer = report.Officers.ReportingOfficers().FirstOrDefault();
            }
            if (reportingOfficer == null)
            {
                return(item);
            }

            item.ReportingDate    = reportingOfficer.InvolvementDate;
            item.ReportingOfficer = reportingOfficer.OfficerName.Description;

            return(item);
        }
        private static CaseNavigationItem CreateSummaryNavigationItem(Summary summary)
        {
            var item = new CaseNavigationItem()
            {
                ItemId             = summary.Id,
                ModuleType         = summary.ModuleType,
                Number             = summary.Number,
                NavigationItemType = NavigationItemType.Summary,
            };

            var reportingOfficer = summary.Officers.ReportingOfficers().FirstOrDefault(x => string.Compare(x.InvolvementType.Code, OfficerInvolvementTypes.Reporting.Code, StringComparison.InvariantCultureIgnoreCase) == 0);

            if (reportingOfficer == null)
            {
                reportingOfficer = summary.Officers.ReportingOfficers().FirstOrDefault();
            }
            if (reportingOfficer == null)
            {
                return(item);
            }

            item.ReportingDate    = reportingOfficer.InvolvementDate;
            item.ReportingOfficer = reportingOfficer.OfficerName.Description;

            return(item);
        }