Example #1
0
        private BO.Station StationFromDoToBoAdjacents(DO.Station station1)
        {
            BO.Station result = StationFromDoToBo(station1);
            IEnumerable <DO.AdjacentStations> DoAdjacents = dl.GetAllAdjacentStationsBy(ad => ad.StationCode1 == station1.Code || ad.StationCode2 == station1.Code);

            result.AdjacentStations = from item in DoAdjacents select AdjFromDoToBo(item, item.StationCode1 == station1.Code?item.StationCode2 : item.StationCode1);  //דואגים שתמיד התחנה שלנו תיהיה ראשונה בעוקבות ;//המרה של כל תחנה עוקבת

            return(result);
        }