Mark Tabor

Mark Tabor

  • 586
  • 2k
  • 464.5k

MVC partial View

Sep 11 2016 1:43 PM
I have a _Layout.cshtml in mvc4 web application, in this master view i am calling a partial view for menu which is strongly type , now I have created a new strongly typed partial view for service menu link I have wrote the code to get data from database , But now when i click on the service menu link i am getting the below error message 
"


The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[BusinessApplicationTemplate.Models.Service]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[BusinessApplicationTemplate.Models.slider]'.

"
why it is so  

Answers (4)