I am trying to add reference of my model in the _layout or component view but for latter it's saying two models are not allowed since there is already -
@model IComponent
And when I try to add a model(@model Test.Navigation
) on top of my _layout view the error is -
"The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[MyWebSite.ViewModels.Navigation]', but this dictionary requires a model item of type 'DD4T.ContentModel.IPage'."
Please confirm if models other than the IComponent or IPage are allowed? If so, how I can achieve it?