Nitin Bhardwaj

Nitin Bhardwaj

  • NA
  • 15.9k
  • 13m

ViewComponent in .Net Core

Jun 29 2017 2:13 AM
 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)