Foretagsplatsen.Api2.RestClientBase.MakeRequest C# (CSharp) Method

MakeRequest() public method

public MakeRequest ( string httpMethod, string url, object arguments ) : System.Net.Response
httpMethod string
url string
arguments object
return System.Net.Response
        public virtual Response MakeRequest(string httpMethod, string url, object arguments)
        {
            WebResponse webResponse;
            try
            {
                var request = CreateRequest(httpMethod, url, arguments);
                webResponse = request.GetResponse();
            }
            catch (WebException exception)
            {
                webResponse = exception.Response;
            }

            return new Response((HttpWebResponse)webResponse);
        }