示例#1
0
        private static void Transform(Stops stops)
        {
            var site        = SiteData.GetSites();
            var api         = CreateApi(site);
            var transformer = new UploadModelTransformer(site, stops);
            var uploadModel = transformer.Transform();
            var integration = api.Organisations.Current.Routes.Integration(site.SiteId);

            SubmitRecord(integration, uploadModel);
        }
示例#2
0
        private static void Transform(ConsignmentStops consignmentModel)
        {
            var stops = consignmentModel.Stops;
            var site  = SiteData.GetSites();
            var api   = CreateApi(site);

            foreach (var stop in stops)
            {
                var transformer = new UploadModelTransformer(site, stop);
                var uploadModel = transformer.Transform();
                var integration = api.Organisations.Current.Routes.Integration(site.SiteId);

                SubmitRecord(integration, uploadModel);
            }
        }