public void SetAccept(HttpHeaderValueCollection <MediaTypeWithQualityHeaderValue> accept)
 {
     if (accept != null)
     {
         var acceptValues = accept.Select(v => v.MediaType);
         if (accept != null)
         {
             this.Client.DefaultRequestHeaders.Add("Accept", acceptValues);
         }
     }
 }
 /// <summary>
 /// To the enumerable.
 /// </summary>
 /// <param name="collection">The collection.</param>
 /// <returns></returns>
 public static IEnumerable <string> ToEnumerable(this HttpHeaderValueCollection <StringWithQualityHeaderValue> collection)
 {
     return(collection?.Select(x => x.ToString()));
 }