public ActionResult Shows() { ShowViewData model = new ShowViewData(); model.UpcomingShows = new List <Show>(profile.Shows.Where(s => s.Date >= DateTime.Now).OrderBy(s => s.Date)); model.PastShows = new List <Show>(profile.Shows.Where(s => s.Date < DateTime.Now).OrderByDescending(s => s.Date)); return(View(model)); }
public ActionResult Shows() { ShowViewData model = new ShowViewData(); model.UpcomingShows = new List<Show>(profile.Shows.Where(s => s.Date >= DateTime.Now).OrderBy(s => s.Date)); model.PastShows = new List<Show>(profile.Shows.Where(s => s.Date < DateTime.Now).OrderByDescending(s => s.Date)); return View(model); }