# How to access RequestModel while using a custom controller (site.axd)?

**URL:** <https://forum.litium.com/t/how-to-access-requestmodel-while-using-a-custom-controller-site-axd/668>\
**Category:** Questions\
**Tags:** accelerator, litium-7\
**Created:** [March 6, 2019, 10:39am UTC](https://forum.litium.com/t/how-to-access-requestmodel-while-using-a-custom-controller-site-axd/668 "2019-03-06T10:39:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 6, 2019, 2:20pm UTC](https://forum.litium.com/t/how-to-access-requestmodel-while-using-a-custom-controller-site-axd/668/2 "2019-03-06T14:20:04Z")

</div>

`Litium.Accelerator.Mvc.Routing.RequestModelHandler` is used for api controllers request and will only be used if the `litium-request-context` http header is included with the request.

`Litium.Accelerator.Mvc.Routing.RequestModelActionFilter` is used for mvc controllers.

If you get the `Litium.Accelerator.Mvc.Routing.RequestModelHandler.AccessorCleanup.Dispose()` to be executed when you executing an mvc controller you are passing in the `litium-request-context` http header with the request that will make both of them to execute.

If you need to pass the request context into the mvc controller you should probably change to use another name of the http header to not get conflicts between them.

---

_[View the full topic](https://forum.litium.com/t/how-to-access-requestmodel-while-using-a-custom-controller-site-axd/668)._
