public List <BenchmarkingData> GetForMandantList(DateTime jahrDateTime, IList <Mandant> mandants) { var mandantIds = mandants.Select(m => m.Id).ToArray(); var q = transactionScopeProvider.Queryable <MandantDetails>() .OrderBy(b => b.Id) .Where(d => d.ErfassungsPeriod.Erfassungsjahr.Year == jahrDateTime.Year && mandantIds.Contains(d.Mandant.Id)); var result = ForMandantList(q); result.AddRange(kenngroessenFruehererJahreBenchmarkingDataService.GetForMandantList(jahrDateTime, mandants)); return(result); }
public List <BenchmarkingData> GetForMandantList(DateTime jahrDateTime, IList <Mandant> mandants) { var result = new List <BenchmarkingData>(); var mandantIds = mandants.Select(m => m.Id).ToArray(); GetFromBenchmarkingData(result, jahrDateTime, mandantIds); result.AddRange(kenngroessenFruehererJahreBenchmarkingDataService.GetForMandantList(jahrDateTime, mandants)); return(result); }