I am new to C# using MVC. I have a simple program that should display a list of items from my database on a webpage. When I launch my web page I get the following error. Please see the files attached.
Server Error in '/' Application.
The model item passed into the dictionary is of type 'System.Collections.Generi
e]', but this dictionary requires a model item of type 'VTask.Models.Sites'.
When I create the index view I used;
"Create a strongly-typed view".
View data class: VTask.Models.Sites
I can also see the following data class in the list.