public bool CopyStepsToConfig(int[] indexes, RouteStationConfiguration fromConfig, RouteStationConfiguration toConfig) { try { for (int i = 0; i < indexes.Length; i++) { toConfig.Steps.Add(new RouteStationStepMapper().MapFrom(fromConfig.Steps[indexes[i]])); } } catch (Exception ex) { return(false); } return(true); }