public object Any(ChangeRequest request)
        {
            var aspReq = new CustomHttpRequest(base.Request.OriginalRequest) {
                ContentType = MimeTypes.FormUrlEncoded
            };

            aspReq.QueryString["Id"] = request.Id;
            aspReq.Form["Id"] = request.Id;
            aspReq.Headers["Id"] = request.Id;

            return new ChangeRequestResponse {
                ContentType = aspReq.ContentType,
                Header = aspReq.Headers["Id"],
                QueryString = aspReq.QueryString["Id"],
                Form = aspReq.Form["Id"],                
            };
        }
Exemple #2
0
        public object Any(ChangeRequest request)
        {
            var aspReq = new CustomHttpRequest(base.Request.OriginalRequest)
            {
                ContentType = MimeTypes.FormUrlEncoded
            };

            aspReq.QueryString["Id"] = request.Id;
            aspReq.Form["Id"]        = request.Id;
            aspReq.Headers["Id"]     = request.Id;

            return(new ChangeRequestResponse {
                ContentType = aspReq.ContentType,
                Header = aspReq.Headers["Id"],
                QueryString = aspReq.QueryString["Id"],
                Form = aspReq.Form["Id"],
            });
        }