0

In MVC.net APIController, I have a method and want to access this method through more than two different URLs from outside. How is it possible and what would the be the best approach? Thanks in advance.

Florian Winter
  • 4,750
  • 1
  • 44
  • 69
  • 1
    Can you clarify a bit on what you mean by accessing by multiple outside URLs? Do you want multiple URI endpoints for your site to route to a single controller action method? It might also help to explain why you need this and what you have tried so far. – Alec Menconi May 18 '20 at 15:35
  • Hi Alec, Yes I want multiple URI endpoints for your site to route to a single controller action method. I have a controller method and want to excess one url https:// localhost/api/GetStock and other https:// localhost/api/StockStatus as so on. – user13567609 May 20 '20 at 04:30
  • Looks like this might fit what you are looking for: https://stackoverflow.com/questions/34213482/multiple-routes-on-a-controller – Alec Menconi May 20 '20 at 16:00

0 Answers0