public ActionResult Index() { HomepageDataModel homedata = new HomepageDataModel(); homedata.games = new GameListModel(_gameBL.GamesBySeason(KSU.maxGameSeason)); homedata.Stories = new StoryBriefListModel(_newsBL.NewsList(6), this.Request.Url.ToString()); return(View(homedata)); }
public ActionResult Index(int?year, int?month, int?day, string url_title) { //if everything is null or an empty string return all stories if (!year.HasValue && !month.HasValue && !day.HasValue && string.IsNullOrEmpty(url_title)) { return(View(new StoryBriefListModel(_newsBL.NewsList(1000), this.Request.Url.ToString()))); } return(Search(year, month, day, url_title)); }