public static string Delete(this RestApiClient networkClient, string url, string content)
        {
            var httpRequest = networkClient.CreateDeleteRequest(url, content);

            var httpClient      = networkClient.HttpClient;
            var response        = httpClient.SendAsync(httpRequest).Result;
            var responseContent = response.Content.ReadAsStringAsync().Result;

            if (response.IsSuccessStatusCode)
            {
                return(responseContent);
            }
            else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized)
            {
                if (networkClient.ShallRefreshToken())
                {
                    if (networkClient.InitiateTokenRefresh())
                    {
                        return(Delete(networkClient, url, content));
                    }
                }
            }

            throw new Exception(extractMessageFromErrorResponse(responseContent));
        }
        public static string Delete(this RestApiClient networkClient, string url, string content)
        {
            var httpRequest = networkClient.CreateDeleteRequest(url, content);

            var httpClient      = networkClient.HttpClient;
            var response        = httpClient.SendAsync(httpRequest).Result;
            var responseContent = response.Content.ReadAsStringAsync().Result;

            if (response.IsSuccessStatusCode)
            {
                return(responseContent);
            }

            throw new Exception(extractMessageFromErrorResponse(responseContent));
        }