Very simple question but I am unable to find an answer, I have a MVC 2 app in C#
I have a ActionResult the accept’s HTTP POST’s
How do I find out the URl of any posts to my ActionResult.
Thanks,
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.
I think you’re looking for:
To ease testability you should look to abstract your use of
HttpContextas it’s a pain to mock. Try wrapping your access to it in a separate object you can inject.