public RouteStation StationExistsByName(ServiceStation station) { foreach (RouteStation routeStation in Stations) { if (routeStation.Name == station.Name) { return(routeStation); } } return(null); }
public override bool Equals(object obj) { ServiceStation station = obj as ServiceStation; if (station == null) { return(false); } return(station.Id == m_id); }