private void ImportConnectTiSi(string[] fields)
        {
            var connect = new ConnectTtSiModel();

            connect.Id = int.Parse(fields[1]);
            var oldTimetableId = int.Parse(fields[2]);

            connect.TimetableId = TimetableKeys.GetValueOrDefault(oldTimetableId, 0);
            var oldServiceId = int.Parse(fields[3]);

            connect.ServiceId = ServiceKeys.GetValueOrDefault(oldServiceId, 0);
            ConnectTtSiDataAccess.InsertConnection(connect.ServiceId, connect.TimetableId);
        }
Пример #2
0
        public string ExportConnectTiSi()
        {
            List <ConnectTtSiModel> connectList = ConnectTtSiDataAccess.GetAllConnectTtSiPerRoute(RouteId);

            return(WriteConnectHeader() + WriteConnectData(connectList));
        }