protected virtual void PreRequestConfiguration(string httpMethod, object id = null, Action <HttpRequestQueryString> queryStringOptions = null) { //TODO: Move code to another file HttpWebRequest.Method = httpMethod; string url = GetQueryStringUrl(id, queryStringOptions); HttpWebRequest.CreateUri(ResourceUri, url); }