public async Task <IHttpActionResult> GetLatestValue(int sensorId) { var userId = SecurityHelpers.ValidateToken(Request.Headers); return(Ok(await api.GetLastReading(userId, sensorId))); }