Having model Employee and model Document. On Details View I want to show Documents bound to selected Employee.
Document model is designed the way it will able to link it to other models (Company, ...) as well.
What is the process of partialy rendering Index view of Document model in Details view of Employee model.
Using <partial> in Details view
<partial name="~/Pages/Documents/IndexModal.cshtml" />
Yields error: The model item passed into the ViewDataDictionary is of type 'Employees.DetailsModel', but this ViewDataDictionary instance requires a model item of type 'Documents.IndexModel'.
Thanks!