public ActionResult <IEnumerable <Room> > GetConnectedRooms(int id) { var foundRoom = controlService.GetRoomById(id); if (foundRoom == null) { return(NotFound()); } return(controlService.GetConnectedRooms(id).ToList()); }