Exemplo n.º 1
0
        public async Task <IActionResult> FindSensorBySensorId(int sensorId)
        {
            var sensor = await _sensorService.FindSensorBySensorId(sensorId);

            SensorModifyDTO sensorModifyDTO = new SensorModifyDTO();

            _mapper.Map(sensor, sensorModifyDTO);
            return(Ok(new ResponseCtrMsg <SensorModifyDTO>(CtrResult.Success)
            {
                ResultObj = sensorModifyDTO
            }));
        }