Beispiel #1
0
        // GET: Petitions
        public ActionResult Index()
        {
            var service             = new PetitionService();
            var parliamentService   = new ParliamentService();
            PetitionHomeModel model = new PetitionHomeModel
            {
                LastSuccessfulPetitions = service.GatLatestPetitions(AppConfig.GetInt("Petitions.Index.LastSuccessfulPetitions", 5)),
                TopActivePetitions      = service.GetTopActivePetitions(AppConfig.GetInt("Petitions.Index.TopActivePetitions", 5)),
                Parliaments             = parliamentService.GetParliaments()
            };

            return(View(model));
        }