如何在部分模型中发送两个参数?

How to send two parameters in a partial model?

除了模型本身,我还想在部分模型中传递产品ID。如何做到这一点?

@Model.product.id
<partial name="_Score" model="@Model.rating"/> 
//Create a class and add two properties example like below

` public class Your_Class_Name{ public int CaseId { 得到;设置; } public 字符串患者姓名 {
得到;设置; }

//and call your partial view like
@Html.Partial("PartialPatientHeaderDetails", new YourClassName
{
  CaseId= @Model.CaseId,PatientName= @havePatientName })
//finally change your return mode in partial View
@model Your_Class_Name 
@{

 }  

@Model.CaseId

@Model.PatientName