I got this following MVC error while returning linq result passing to the partial view. "The model item passed into the dictionary is of type System.Linq.OrderedEnumerable".
In this article, I will show how to perform random sort list c# asp.net.The .Net 3.5 framework has Linq,it is a very good feature, it allows us to perform complex operations with efficiency .
When I tried to run the application I got the following error it was resolved. You need to use the result of the query as datasource for your combobox.
A Linq query is translated to SQL to be performed against the database. Make sure you need to assign session or form request to a variable first and use this variable in the query