3 つのコントローラー (ASP.NET MVC3) があるとします。
- NewProductController (view ->index)
- ProductModelController (view ->index(int productid))
- ProductDetailsController (view =>index(int productid, int productModelId))
ユーザーは、NewProductController のインデックス ビューから製品または製品 + 製品モデルを選択できます。選択に応じて、ProductModelController または ProductDetailsController のインデックス ビューにリダイレクトする必要があります。その方法を教えてください。
ここでも、URL にコントローラーの名前を表示する代わりに、URL を次のように書き換えます。
http://www.myDomain/List of product
http://www.myDomain/List of LG TV
これを行うための最善の方法を提案してください。
ありがとう、ポール