と一致することが見出されたIは、経路設定ファイルにルーティング属性を有効にしていると私は、1つの静的prifixを有し、他方は可変接頭 を有する二つのコントローラ上で複数のコントローラタイプが要求されたURL
[RoutePrefix("receive-offer")]
public class ReceiveOfferController : Controller
{
// GET: ReceiveOffer
[Route("{destination}-{destinationId}")]
public ActionResult Index(int destinationId)
{
return View();
}
}
public class DestinationController : Controller
{
[Route("{country}/{product}-{productId}")]
public ActionResult Destination(string country, string product, int productId)
{
return View();
}
}
としてルーティング属性を宣言していますしかし私はこれらの2つのコントローラからのURLエラーと一致する複数のコントローラタイプが見つかりました。
このルーティングパターンで何が問題ですか。
できますURLを表示しますか? – Usman
urlはでき /////////// (ドメイン/アメリカ/ニューヨーク-1)(ドメイン/受信オファー/ニューヨーク-1) などの上記2 URL USAになります受信オファーが静的である他の国と交換してください。 –