private static HttpResponseMessage ExecuteRequestReturnResponse() { var request = new HttpRequestMessage {RequestUri = DefaultUriFactory.Instance.CreateAbsoluteUri<RequestForQuote>(BaseAddress)}; var requestForQuote = new RequestForQuote(DefaultUriFactory.Instance); return requestForQuote.Get(request); }
private static Shop ExecuteRequestReturnEntityBody() { var request = new HttpRequestMessage {RequestUri = DefaultUriFactory.Instance.CreateAbsoluteUri<RequestForQuote>(BaseAddress)}; var requestForQuote = new RequestForQuote(DefaultUriFactory.Instance); var response = requestForQuote.Get(request); return response.Content.ReadAsOrDefault(); }