In my Controller
public ActionResult autoassign()
{
var rc = new peopleDBEntities();
var res = (from p in rc.people
orderby p.scoresobtained descending
select new
{
firstname = p.firstname.ToString(),
lastname = p.lastname.ToString(),
score = f.canditatescores.ToString(),
});
in my controller as shown above, i have retrieved the values from people table from highest scores.(descending) how do iterate to pare them into groups of 20 each. i do not know how to go about it. so please help. I am using asp.net mvc in C#