Exemple #1
0
        public ActionResult Index(string pCode)
        {
            var parliamentId = new ParliamentService().GetParliamentId(pCode);

            RepresentativeService   service = new RepresentativeService();
            RepresentativeListModel model   = service.GetAllRepresentativesForParliament(parliamentId);

            return(View(model));
        }
Exemple #2
0
        public ActionResult ManageRepresentatives()
        {
            if (SessionManager.Current.CurrentParliamentId == 0)
            {
                SessionManager.Current.CurrentParliamentId = 1;
            }

            RepresentativeService   service = new RepresentativeService();
            RepresentativeListModel model   = service.GetAllRepresentativesForParliament(SessionManager.Current.CurrentParliamentId);

            return(View(model));
        }