TopShelfCustomer/TopShelfCustomer/Services/ApiHelper.cs
/// <summary>
/// InitializeClient:
///
/// Initialization for the HttpClient object.
/// Clears and modifies request headers to accept
/// JSON strings/
/// </summary>


Initialization for the HttpClient object.
Clears and modifies request headers to accept
JSON strings
Initialization for the HttpClient object . Clears and modifies request headers to accept JSON strings
private void InitializeClient () {
            ApiClient = new HttpClient();       
            ApiClient.DefaultRequestHeaders.Accept.Clear();     
            ApiClient.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue( "application/json" ) );
        }
private void InitializeClient ( ) { ApiClient = new HttpClient ( ) ; ApiClient . DefaultRequestHeaders . Accept . Clear ( ) ; ApiClient . DefaultRequestHeaders . Accept . Add ( new MediaTypeWithQualityHeaderValue ( " " ) ) ; }
InitializeClient:
InitializeClient :
//Instantiate the HttpClient //Set default request headers to JSON strings