Ejemplo n.º 1
0
        public async Task <IEnumerable <DayTimeReportViewModel> > GetDayTimeReportAsync(string stringDate)
        {
            DateTime date        = TimeConverter.ToDateTime(stringDate);
            var      timeReports = await timeReportRepository.GetDayUserReports(await GetUserId(), date);

            await referenceLoader.LoadForTimeReports(timeReports);

            return(timeReports.AsParallel().Select(tr => tr.ToViewTimeReport()));
        }