Hi,
I have a scenario where we have a class as follows
Class RiskRegister
{
int projNo;
string projName;
List<Risk> InternalRisks
List<Risk> ExternalRisks
}
The view is shaped as
@Html.Partial("~/Views/RiskRegister/_riskRegister.cshtml")
@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.​InternalRisks)
@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.ExternalRisks)​
As shown, we are re-using the risksGrid as they are the same except for a flag
How do I get the Read action to populate the correct data on the corresponding grid? Please help