public IEnumerable <TimesheetDto> GetTimesheets(string id) { List <TimesheetDto> timesheetsDtos = new List <TimesheetDto>(); IEnumerable <Timesheet> timesheets = _timeSheetRepository.GetTimesheetsByUserId(id).OrderByDescending(r => r.WeekStarting); foreach (Timesheet ts in timesheets) { timesheetsDtos.Add(TimesheetToDto(ts)); } return(timesheetsDtos); }