private Gate FindGate(Guid id) { if (!GateDict.ContainsKey(id)) { GateDict[id] = Gates.Find(x => x.ID == id); } return(GateDict[id]); }