List <ResumeChecker_AlacartReport> dispalyReport()
        {
            List <ResumeChecker_AlacartReport> alacartReports = new List <ResumeChecker_AlacartReport>();

            string[]      alacartReportList = { "eKnowID Criminal MultiState Check", "Employment Verification", "Education Verification", "IDentify" };
            List <Report> reportLst         = PlanHelper.GetAlacartReportList();
            ResumeChecker_AlacartReport alacartReport;

            foreach (string reportName in alacartReportList)
            {
                foreach (Report report in reportLst)
                {
                    if (report.Name == reportName)
                    {
                        alacartReport                            = new ResumeChecker_AlacartReport();
                        alacartReport.report                     = new Report();
                        alacartReport.report.Name                = report.Name;
                        alacartReport.report.Description         = report.Description;
                        alacartReport.report.Price               = report.Price;
                        alacartReport.report.ReportId            = report.ReportId;
                        alacartReport.report.TurnaroundTime      = report.TurnaroundTime;
                        alacartReport.report.reportShortDesrript = report.reportShortDesrript;
                        alacartReports.Add(alacartReport);
                        break;
                    }
                }
            }

            return(alacartReports);
        }
        List <AlacartReportDisplay> dispalyReport(int reportTypeId)
        {
            List <AlacartReportDisplay> alacartReports = new List <AlacartReportDisplay>();

            //string[] alacartReportList = { "eKnowID State Criminal Check", "eKnowID Criminal MultiState Check", "eKnowID Criminal MultiState Alias",
            //                                 "OnSite County Check", "Federal Court", "eKnowID International", "Employment Verification", "Education Verification",
            //                                 "IDentify", "Reference Verification", "eKnowID Drug Test", "Driving Record", "Credit" };

            //string[] alacartReportList = {"County Criminal Courthouse Search", "Federal Criminal Courthouse Search", "International Criminal Record Search",
            //                               "Employment Verification", "Education Verification", "Reference Verification",
            //                               "eKnowID Drug Test", "Driving Record", "County Civil Courthouse Search", "State Criminal Records", "Credit Report", "Global Security Watch List"};

            alacartReports = PlanHelper.GetAlacartReportList().Where(p => p.ReportTypeID == reportTypeId && p.IsActive)
                             .Select(p => new AlacartReportDisplay
            {
                report = new Report {
                    Name                   = p.Name,
                    Description            = p.Description,
                    Price                  = p.Price,
                    ReportId               = p.ReportId,
                    TurnaroundTime         = p.TurnaroundTime,
                    IsMultipleCheckEnabled = p.IsMultipleCheckEnabled,
                    MaxVerificationCount   = p.MaxVerificationCount
                }
            }).ToList();

            //alacartReports.AddRange(reportls)
            //AlacartReportDisplay alacartReport;
            //foreach (string reportName in alacartReportList)
            //{
            //    foreach (Report report in reportLst)
            //    {
            //        if (report.Name == reportName && report.ReportTypeID == reportTypeId)
            //        {
            //            alacartReport = new AlacartReportDisplay();
            //            alacartReport.report = new Report();
            //            alacartReport.report.Name = report.Name;
            //            alacartReport.report.Description = report.Description;
            //            alacartReport.report.Price = report.Price;
            //            alacartReport.report.ReportId = report.ReportId;
            //            alacartReport.report.TurnaroundTime = report.TurnaroundTime;
            //            alacartReport.report.IsMultipleCheckEnabled = report.IsMultipleCheckEnabled;
            //            alacartReport.report.MaxVerificationCount = report.MaxVerificationCount;

            //            alacartReports.Add(alacartReport);
            //            break;
            //        }
            //    }
            //}

            return(alacartReports);
        }
        List <UpgradeReportDisplay> dispalyReport(int reportTypeId)
        {
            List <UpgradeReportDisplay> alacartReports = new List <UpgradeReportDisplay>();
            List <int> planReportId = PlanHelper.GetPlanReports(SessionWrapper.OrderDetail.PlanId).Select(p => p.ReportId).ToList();

            //string[] alacartReportList = {"County Criminal Courthouse Search", "Federal Criminal Courthouse Search", "International Criminal Record Search", "Employment Verification", "Education Verification", "IDentify", "Reference Verification", "eKnowID Drug Test", "Driving Record", "Credit", "County Civil Courthouse Search", "State Criminal Records", "Credit Report", "Global Security Watch List" };

            alacartReports = PlanHelper.GetAlacartReportList().Where(p => p.ReportTypeID == reportTypeId && p.IsActive &&
                                                                     (p.MaxVerificationCount > 1 || !planReportId.Contains(p.ReportId)))
                             .Select(p => new UpgradeReportDisplay {
                report = new Report {
                    Name                   = p.Name,
                    Description            = p.Description,
                    Price                  = p.Price,
                    ReportId               = p.ReportId,
                    TurnaroundTime         = p.TurnaroundTime,
                    IsMultipleCheckEnabled = p.IsMultipleCheckEnabled,
                    MaxVerificationCount   = p.MaxVerificationCount
                }
            }).ToList();
            return(alacartReports);
        }