I have ASP MVC 3 application. I created WCF REST JSON Service and added it to my application by next code in Global.asax file in RegisterRoutes method:
routes.Add("Api", new ServiceRoute("api", new WebServiceHostFactory(), typeof (ExternalApiService)));
Service worked well, but when I tried to use
RedirectToAction("Index", "User", new { id = 1 });
method in my controller action, it redirects to (http://localhost:8091/api?action=Index&controller=User&id=1) url.
Can anyone helps me on this issue?