Exemple #1
0
        private async Task <WorkEntryDto[]> GetList(string userId, DateTime?minDate, DateTime?maxDate)
        {
            var entries = await _workEntriesService.FindAsync(userId, minDate, maxDate);

            return(entries.Select(e => new WorkEntryDto(e)).ToArray());
        }
Exemple #2
0
        public async Task <WorkEntryDto[]> GetList([FromQuery] DateTime?minDate = null, [FromQuery] DateTime?maxDate = null)
        {
            var entries = await _workEntriesService.FindAsync(UserId, minDate, maxDate);

            return(entries.Select(e => new WorkEntryDto(e)).ToArray());
        }