In MSDN it says
Gets HTTP-specific information about the current request.
Controller.HttpContext:
Gets HTTP-specific information about an individual HTTP request.
Whats the difference between them. Are they both the same?
In MSDN it says
Gets HTTP-specific information about the current request.
Controller.HttpContext:
Gets HTTP-specific information about an individual HTTP request.
Whats the difference between them. Are they both the same?
They are both the same. What is more,
Controller.HttpContextis mockable (helpful for unittesting). They are point to the same data, butController.HttpContextprovide more features like RouteData etc.