public IActionResult Get(int id) { var house = _monitor.GetBuilding(id); if (house != null) { return(Ok(house)); } return(NotFound()); }