public string GetJSONDocumentUpload(DataTable dtDocument, string EMRPatientID, string RequestID, string EMRID, string ModuleID, string UserID) { try { DocumentUpload objDocument = new DocumentUpload(); string JSONString = objDocument.GenerateAPIJSONString(dtDocument, EMRPatientID, RequestID, EMRID, ModuleID, UserID); return(JSONString); } catch (Exception) { throw; } }
//Data Source=WINDOWS-7J7SHKG\SQLEXPRESS;Initial Catalog=IntelliHStagingdrchrono;User ID=sa;Password=Sahil@123 public DataTable PostDocument(string patientid, string stagingdbconnectionstring, string requestid, string accesstoken) { try { parameters["access_token"] = accesstoken; parameters["patientid"] = patientid; DocumentUpload objDocumentUpload = new DocumentUpload(); DataTable responseData = new DataTable(); responseData = objDocumentUpload.PostData(parameters); return(responseData); } catch (Exception) { throw; } }