0

I'm developing an ASP.NET MVC application as an API for my mobile application. I'm going to send some parameters using http GET method.

When I debug my application, http://localhost:58757/ is mapped to http://localhost:58757/home/index.But I don't know how to send parameters to controllers of home . Currently I use its complete URL i.e. http://localhost:58757/home/index?userID=10&language=en to pass parameters. I want to know are there any methods so I can remove /home/index from this URL and still passing parameters?

6
  • You just leave it out, just like without parameters Commented Feb 18, 2017 at 0:17
  • can you post your route configuration pelase Commented Feb 18, 2017 at 0:54
  • Possible duplicate of Assigning multiple routes to the same controller or action in ASP MVC 6 Commented Feb 18, 2017 at 1:01
  • 1
    @SimonPrice, That link has nothing to do with OP's issue, not to mention the question is tagged MVC-4 Commented Feb 18, 2017 at 1:10
  • 1
    What is wrong with using http://localhost:58757?userID=10&language=en? Commented Feb 18, 2017 at 1:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.