I have a class library that sends out emails for various events in my application. part of the email is a link to get back to the affected area of the site.
Is there the equivalent to Url.Action() for a class library to generate the link?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that the email is generated by somewhere in your MVC site, you could always pass through the Url from the controller into your class library in order to create the url there…
Your controller
Your library class here…