public string CreatePersonDocument(string documentJson)
        {
            var          url     = apiUrl + "/entities/personDocument";
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST, documentJson);

            return(eRestClient.SubmitRequest(request));
        }
        public string CreateCaseWithParty(string caseJson)
        {
            var          url     = apiUrl + "/entities/case";
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST, caseJson);

            return(eRestClient.SubmitRequest(request));
        }
        public string UploadPersonDocument(string documentID, string filePath)
        {
            var          url     = apiUrl + "/upload/personDocument/" + documentID;
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST);

            request.FilePathToUpload = filePath;
            return(eRestClient.SubmitRequest(request));
        }
        public string GetPersonsFromPersonSource(int?personSource)
        {
            if (personSource != null)
            {
                var          url     = apiUrl + "/search/person/personSource/" + personSource;
                eRestRequest request = new eRestRequest(url, authToken);
                var          result  = eRestClient.SubmitRequest(request);

                return(result);
            }
            return(null);
        }
        public bool TestConnection()
        {
            var          url     = apiUrl + "/entities";
            eRestRequest request = new eRestRequest(url, authToken);

            try
            {
                var result = eRestClient.SubmitRequest(request);
                if (result != null)
                {
                    return(true);
                }
            } catch (Exception e)
            {
                throw e;
            }

            return(false);
        }