public string SendJSONRequest <T>(string entity, T obj, bool ignoreNull)
        {
            string payload = JsonConvert.SerializeObject(obj, new JsonSerializerSettings {
                NullValueHandling = ignoreNull?NullValueHandling.Ignore:NullValueHandling.Include
            });

            return(JSONRequest.SendJSONRequest(Logger, entity, payload));
        }
        protected string SerializeAndSendRequest <T>(T request)
        {
            string payload = JsonConvert.SerializeObject(request, new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore
            });



            var jsonResponse = _jsonRequest.SendJSONRequest(_logger, _endPoint, payload, 123);

            if (jsonResponse == null)
            {
                _logger?.LogDebug("Response is null");
            }

            return(jsonResponse);
        }
 public string SendJSONRequest(string entity, string payload)
 {
     return(JSONRequest.SendJSONRequest(Logger, entity, payload));
 }