Ejemplo n.º 1
0
        private string CallForWpContent(string endPoint, WPEnums.ContentTypes contentType)
        {
            var    post     = new JSONRequest();
            string response = null;

            try
            {
                if (MockRequest == "true")
                {
                    response = post.MockWebCall(endPoint, contentType);
                }
                else
                {
                    response = post.WebCall(endPoint);
                }
            }
            catch (Exception ex)
            {
                //whatever you want to do here
            }

            return(response);
        }