Exemple #1
0
        public ActionResult Index()
        {
            SimchaViewModel viewmodel = new Models.SimchaViewModel();
            SimchaManager   manager   = new SimchaManager(Properties.Settings.Default.constr);

            viewmodel.simchas          = manager.GetAllSimchas();
            viewmodel.ContributorCount = manager.AllContributorsCount();
            return(View(viewmodel));
        }
Exemple #2
0
        public ActionResult Contributions(int simchaid)
        {
            SimchaManager        manager   = new SimchaManager(Properties.Settings.Default.constr);
            ContributorViewModel viewmodel = new ContributorViewModel();

            viewmodel.contributors = manager.GetAllContributors();
            viewmodel.simchaid     = simchaid;
            viewmodel.count        = manager.AllContributorsCount();
            viewmodel.Donated      = manager.GetAllSimchaDonations(simchaid);

            return(View(viewmodel));
        }