public DC_Message SyncGeographyData(DC_MongoDbSyncRQ RQ) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["GeographyDataSync"], RQ, typeof(DC_MongoDbSyncRQ), typeof(DC_Message), out result); return(result as DC_Message); }
public DC_Message SyncHotelMappingLite(Guid ProdMap_Id) { DC_Message _msg = new DC_Message(); if (ProdMap_Id != Guid.Empty) { DHSVCProxyAsync DHP = new DHSVCProxyAsync(); string strURI = string.Format(System.Configuration.ConfigurationManager.AppSettings["Load_ProductMappingLite"], (Guid.Empty).ToString(), Convert.ToString(ProdMap_Id)); DHP.GetAsync(ProxyFor.SqlToMongo, strURI); return(_msg); } else { DC_MongoDbSyncRQ param = new DC_MongoDbSyncRQ(); param.Element = "Hotel"; param.Type = "MappingLite"; _msg = SyncGeographyData(param); return(_msg); } }