public async Task <ActionResult <SensorResponse> > GetRangeById(Guid id, DateTime start, DateTime end) { var result = await _service.GetRangeById(id, start, end); if (result == null) { return(NotFound()); } return(Ok(_converter.ToSensorResponse(result))); }