linq groupby in strongly typed MVC View

Posted by jason on Stack Overflow See other posts from Stack Overflow or by jason
Published on 2010-05-12T23:15:14Z Indexed on 2010/05/12 23:34 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

How do i get an IGrouping result to map to the view?

I have this query:

var groupedManuals = manuals.GroupBy(c => c.Series);
return View(groupedManuals);

What is the proper mapping for the ViewPage declaration?

Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProductManual>>"

© Stack Overflow or respective owner

Related posts about group

Related posts about mvc