// GET: /SiteContent/ public ActionResult Index() { var model = new ContentListViewModel(); model = model.Populate(db); return(View(model)); }
public ActionResult History(string id = null) { var model = new ContentListViewModel(); model = model.Populate(db, id); if (!model.Items.Any()) { return(HttpNotFound()); } return(View(model)); }