|  |  | 
 |  |  |             for (int j = location.Depth - 1; j >= 1; j--) | 
 |  |  |             { | 
 |  |  |                 Dt_LocationInfo? locationInfo = locationInfos.FirstOrDefault(x => x.Depth == j && x.Column == location.Column && x.Layer == location.Layer && (x.Row == row + 1 || x.Row == row - 1)); | 
 |  |  |                 if (j == 1 && location.RoadwayNo.Contains("CSJ") && (row==1 || row==6)) | 
 |  |  |                 { | 
 |  |  |                     locationInfo = locationInfos.FirstOrDefault(x => x.Depth == j && x.Column == location.Column && x.Layer == location.Layer && (x.Row == row + 2 || x.Row == row - 2)); | 
 |  |  |                 } | 
 |  |  |                 if (locationInfo != null) | 
 |  |  |                 { | 
 |  |  |                     groupLocations.Add(locationInfo); |