Ejemplo n.º 1
0
        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)));
        }