private void LogErrorInMgApp(string targetUrl, string data, string response) { ITokenContainer tokenContainer = new TokenContainer(); ApiHelper.Client.ApiClient client = new ApiHelper.Client.ApiClient(HttpClientInstance.Instance, tokenContainer); GenericClient cb = new GenericClient(client); cb.LogErrorinMgApp("PCSWEBREQUESTURL:" + targetUrl); if (data != null) { cb.LogErrorinMgApp("PCSWEBDATA:" + data); } if (response != null) { cb.LogErrorinMgApp("PCSWEBRESPONSE:" + response); } }