0
私のホームページ(HomePageモデルを使用)では、別のモデルを使用する部分を呼び出す必要があります。MVCがモデルを呼び出さずに部分ビューを呼び出す
私はエラーを取得しておいてください。
私は私の部分図を呼び出すためにしようとしている方法The model item passed into the dictionary is of type 'Site.Models.HomeModel', but this dictionary requires a model item of type 'Site.Models.DifferentModel'
。
@Html.Partial("~/Views/Shared/_partialItem.cshtml")
コントローラを変更せずにこれを行う方法はありますか?
ありがとうございました。
を試してみてください – DiskJunky