2
Reply

ViewComponent in .Net Core

Nitin Bhardwaj

Nitin Bhardwaj

Jun 29 2017 2:13 AM
196
 Hi,
 
I have created dynamic menu using ViewComponent. and it's working with return blank view() but if I am returning some view(Model). It's throw an error.
 
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'A', but this ViewDataDictionary instance requires a model item of type 'B'.
 
 

Answers (2)