I\'m converting ASP.NET web application to MVC Web Api project. One of my methods expects HttpRequest class. However, Web Api controller holds only HttpReques
HttpRequest
HttpReques
Try to use/create a HttpRequestWrapper using your HttpRequestBase.
You probably don't need to convert from HttpRequestMessage. There is another way:
var context = new HttpContextWrapper(HttpContext.Current); HttpRequestBase request = context.Request;