private KeyPerformanceIndicator(int franchiseId, Job[] jobs, JobTask[] tasks) { FranchiseId = franchiseId; Jobs = jobs; Tasks = tasks; InconsistentRecords = Jobs.Where(j => !Estimates.Any(e => e.Id == j.Id) && !CompletedJobs.Any(c => c.Id == j.Id) && !RecallJobs.Any(r => r.Id == j.Id)).ToArray(); }
internal KeyPerformanceIndicator(int franchiseId, vRpt_Job[] jobs, vRpt_JobDetail[] tasks) { FranchiseId = franchiseId; Jobs = jobs.Select(Job.MapFromModel).ToArray(); Tasks = tasks.Select(JobTask.MapFromModel).ToArray(); InconsistentRecords = Jobs.Where(j => !Estimates.Any(e => e.Id == j.Id) && !CompletedJobs.Any(c => c.Id == j.Id) && !RecallJobs.Any(r => r.Id == j.Id)).ToArray(); }