예제 #1
0
        public async Task <IHttpActionResult> GetLatestValue(int sensorId)
        {
            var userId = SecurityHelpers.ValidateToken(Request.Headers);

            return(Ok(await api.GetLastReading(userId, sensorId)));
        }