public ActionResult Index() { if (Session["user"] == null || !(bool)Session["isAdmin"]) { return(HttpNotFound()); } using (var db = new AuctionHouseDB()) { try { ViewBag.NavIndex = 3; ViewBag.RecentAuctions = db.GetCurrentSystemParameters().RecentAuctions; return(View(db.FindReadyAuctions(true))); } catch (Exception ex) { log.Error(ex.Message, ex); return(View("Error")); } } }