public IActionResult GetLight(int id) { var user = _fileservice.Brain(id); if (user == null) { return(BadRequest(new { message = "nope" })); } //Log attempt return(Ok(user)); }