Update code docs for DynamicRouteValueTransformer (#36653)
The docs aren't entirely clear on what values to return from TransformAsync. After looking at examples posted within issues and PRs in this repo, reading the comments of MS's devs and looking at the code of how the result of TransformAsync works - it seems that a `null` value being returned is a requirement to indicate that your `TransformAsync` didn't match anything. If you do not return `null`. There's a specific check for `null` from this result here https://github.com/dotnet/aspnetcore/blob/8b30d862de6c9146f466061d51aa3f1414ee2337/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs#L129 and having a look at all of Orchards implementations of DynamicRouteValueTransformer, they also return null whenever there is not a match. I did some further testing and it seems it may be valid to just return the original `values` too since if these values don't match any endpoints, the same logic would be executed as if a null response was there: https://github.com/dotnet/aspnetcore/blob/8b30d862de6c9146f466061d51aa3f1414ee2337/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs#L148 but seems that a `null` value to indicate there was no match is safer and would perform better too to avoid the endpoint lookups.
Co-authored-by: Pranav K <[email protected]>