public async Task <IEnumerable <SpeedEntryDto> > GetOverSpeedEntriesAsync(GetMinMaxSpeedEntryDto dto)
        {
            using (var uow = UnitOfWorkFactory.Build())
            {
                var now     = DateTime.UtcNow;
                var entries = await uow.SpeedEntryRepository
                              .FilterAsync(
                    dto.Period,
                    se => se.Speed >= dto.MaxSpeed);

                return(Mapper.Map <IEnumerable <SpeedEntryDto> >(entries));
            }
        }
        public async Task <ActionResult <IEnumerable <SpeedEntryDto> > > GetOverSpeedEntriesAsync([FromQuery] GetMinMaxSpeedEntryDto dto)
        {
            var result = await _speedControllerService.GetOverSpeedEntriesAsync(dto);

            return(Ok(result));
        }