Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions with UrlHelper #21

Closed
jbogard opened this issue Dec 11, 2013 · 1 comment
Closed

Extensions with UrlHelper #21

jbogard opened this issue Dec 11, 2013 · 1 comment

Comments

@jbogard
Copy link

jbogard commented Dec 11, 2013

In the case I don't want to create a RouteLinker, what do you think about extending the UrlHelper inside an ApiController? Something like this:

https://gist.github.com/jbogard/7918898

Obviously I'd namespace this accordingly so that it's opt-in.

@ploeh
Copy link
Owner

ploeh commented Dec 12, 2013

I hadn't thought about that, but it looks like a great addition.

I anyone feels inclined to turn the above gist into a pull request, please don't forget to add some unit tests too :)

@ploeh ploeh closed this as completed in 10998c5 Dec 24, 2013
dlongest pushed a commit to dlongest/Hyprlinkr that referenced this issue Mar 20, 2014
in order to indicate that the addition of an extension method on UrlHelper
is a new feature. This resolves ploeh#21
(ploeh#21).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants