public ActionResult Index() { if (TempData["Message"] != null) { ViewBag.Message = TempData["Message"]; } var mgr = new SimchaFundManager(Properties.Settings.Default.ConStr); var viewModel = new SimchaIndexViewModel(); viewModel.TotalContributors = mgr.GetContributorCount(); viewModel.Simchas = mgr.GetAllSimchas(); return View(viewModel); }