public ActionResult Index() { using (var db = new AuctionHouseDB()) { try { ViewBag.NavIndex = 0; ViewBag.RecentAuctions = db.GetCurrentSystemParameters().RecentAuctions; return(View(db.FindActiveAndCompletedAuctions(true))); } catch (Exception ex) { log.Error(ex.Message, ex); return(View("Error")); } } }