public string CallGetTablesUpdate(string _tableName, string _maxJson) { string MSJ = ""; string nameService = "GetTablesUpdate"; var client = new RestClient(routeServiceDownLoad); client.Authenticator = new HttpBasicAuthenticator(basicAuthUser, basicAuthPass); var request = new RestRequest(Method.POST); request.Resource = nameService; request.RequestFormat = RestSharp.DataFormat.Json; request.AddHeader("Content-type", "application/json"); request.AddBody(new { tableName = _tableName, maxJson = _maxJson }); try { IRestResponse response = client.Execute(request); var content = response.Content; JsonRepository _JsonRepository = new JsonRepository(); Dictionary<string, string> resx = _JsonRepository.GetResponseDictionary(response.Content); //inserta o actualiza los registros correspondientes MSJ = _JsonRepository.GetDeserialize(resx["GetTablesUpdateResult"], _tableName); } catch (Exception) { throw; } return MSJ; }