asp.net mvc 3 - mvc3 best way to remove a .tolist in global -
i have model tolist , ordered date , have foreach in view model wondering how can craigslist effect when displaying date, .. if @ foreach below grouped
1. date, profile, state
2. date, profile, state
, on.
how can turn
date
1. profile, state
2. profile, state
as ordered createdate, display date 4-21-2013 , under date of listings created on it.. on 4-20-2013 , same thing. not know if can done in foreach great !!
// controller model var mypages = (from s in db.jobs.orderby(c => c.createdate) select s).tolist(); // view model @foreach (var item in model) { @item.createdate , @html.actionlink("view profile", "detail", "profile", new { id = item.profile}), @item.state }
Comments
Post a Comment