@model Customer
@Html.Partial("_UserProfile", (UserProfile)Model.UserProfile)
このコードを実行すると、次のエラーが発生します。
The model item passed into the dictionary is of type 'Customer', but this dictionary requires a model item of type 'UserProfile'.
部分ビュー _UserProfile は厳密に型指定されています。
これらのフィールドを編集できるようにしたいです。助言がありますか?