I have a View that invokes a few child controller actions. One of these child actions will check for an optional query-string value, this particular query-string will be an integer and I'm wondering if it's prudent to have this value as a parameter in the child action?
The reason I'm not using a parameter is because the View would then have to parse the query string as an integer and also perform null checks, hence why the child action just checks for the presence of the query string internally.
Is this the recommended approach? Or is it better (and more testable) to have an argument in the action method?
Thanks