ASP.Net WebAPIアプリケーションでRedirectToActionを使用していますが、次の方法を試しました。
return RedirectToAction("AuthenticateUser", "AuthenticationServiceWebApi", new RouteValueDictionary
{
{"userName", model.UserName},
{"password", model.Password}
});
これにより、以下のようにリダイレクトが生成されます。
127.0.0.1:81/authenticationservicewebapi/authenticateuser/admin/admin@123
ただし、WebAPIを使用しているので、以下のようなURLにする必要があります。
127.0.0.1:81/api/authenticationservicewebapi/authenticateuser/admin/admin@123
どうすればよいですか?