private MediaTypeFormatter GetMediaTypeFormatter(ApiClientRequestType requestType)
        {
            switch (requestType)
            {
            case ApiClientRequestType.Xml:
                return(new XmlMediaTypeFormatter());

            default:
                return(new JsonMediaTypeFormatter());
            }
        }
        public static string ToMediaType(this ApiClientRequestType requestType)
        {
            switch (requestType)
            {
            case ApiClientRequestType.Json:
                return("application/json");

            case ApiClientRequestType.Xml:
                return("application/xml");

            case ApiClientRequestType.FormUrlEncoded:
                return("application/x-www-form-urlencoded");

            default:
                return("text/plain");
            }
        }