Ejemplo n.º 1
0
        public MeasurementPageResponse GetMeasurementsOfDevice([FromRoute] string token, [FromQuery] int page = 1)
        {
            MeasurementViewModel measurements = _measurementRepository.GetMeasurementsOfDevice(token, HttpContext.User.Identity.Name, page);

            return(_mapper.Map <MeasurementPageResponse>(measurements));
        }