I have a partial view "_Initial"
with the model: @model Release
In the main view I have:
@if (Model == null || Model.Release == null)
{
@Html.Partial("_Initial")//error here
}
else
{
@Html.Partial("_Initial", Model.Release)
}
The main view has the model: @model WorkspaceData
and I can't phantom why am I getting the error:
The model item passed into the dictionary is of type 'WNCT_Web_Application.BL.Workspace.Monitoring.WorkspaceData', but this dictionary requires a model item of type 'WNCT_Web_Application.BL.Release.Release'.
When I'm not even sending a model (the partial view has logic for when the model is null)?