Exemple #1
0
        public IActionResult Index()
        {
            if (TempData["Message"] != null)
            {
                ViewBag.Message = TempData["Message"];
            }
            var manager = new SimchaChipInManager(_connectionString);
            var vm      = new ContributorsIndexViewModel();

            vm.Contributors = manager.GetContributors();
            return(View(vm));
        }
        public ActionResult Index()
        {
            if (TempData["Message"] != null)
            {
                ViewBag.Message = TempData["Message"];
            }
            var vm  = new ContributorsIndexViewModel();
            var mgr = new SimchaFundManager(Properties.Settings.Default.ConStr);

            vm.Contributors = mgr.GetContributors();
            return(View(vm));
        }
        public ActionResult Index()
        {
            if (TempData["Message"] != null)
            {
                ViewBag.Message = TempData["Message"];
            }
            var vm   = new ContributorsIndexViewModel();
            var repo = new SimchaFundRepository(Properties.Settings.Default.ConStr);

            vm.Contributors = repo.GetContributors();
            vm.Total        = repo.GetTotal();
            return(View(vm));
        }