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()); }
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()); }