public SaveStatus ImportByEnvelopeId(string envelopeId) { LoggingHelper.DoTrace(6, thisClassName + string.Format("Request to import entity by envelopeId: {0}", envelopeId)); Import.Services.RegistryServices mgr = new Import.Services.RegistryServices(); if (mgr.ImportByEnvelopeId(envelopeId, status)) { new RegistryServices().ImportPending(); //can't call Services from here //ElasticServices.UpdateElastic(); } return(status); }