Ejemplo n.º 1
0
        /// <summary>
        /// This method will synchronize distributors from remote to local
        /// </summary>
        public void SynchronizeDistributorsFromRemoteToLocalSync(string distributorSyncURL)
        {
            List <DistributorModel> distributors = SynchronizerExtension.FetchEntitiesFromRemoteSync <DistributorModel>(distributorSyncURL);

            //Console.WriteLine(distributors[0].Address);
            if (distributors.Count > 0)
            {
                distributorService.BulkSave(distributors);
                SendDistributorsSynchedStatus(distributors, distributorSyncURL);
            }
        }