Exemple #1
0
        public async Task <ActionResult <SensorResponse> > GetLatestById(Guid id, int num)
        {
            var result = await _service.GetLatestById(id, num);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(_converter.ToSensorResponse(result)));
        }