public ActionResult <IEnumerable <Sensor> > GetSensors() { string token = HttpContext.Request.Headers["token"]; if (token != TokenEmulator) { return(Unauthorized()); } return(new ActionResult <IEnumerable <Sensor> >(_reports.GetSensors())); }