Esempio n. 1
0
        public ActionResult MainAction()
        {
            Session.Clear();
            ModelState.Clear();
            DuesMemberEntityManager mgr   = new DuesMemberEntityManager();
            ReportViewModel         model = mgr.getModelToShowOnHomePage();

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult ReportGenerate()
        {
            ReportViewModel         mdl       = (ReportViewModel)TempData["InputDataModel"];
            DuesMemberEntityManager mgr       = new DuesMemberEntityManager();
            ReportViewModel         modelView = new ReportViewModel();

            if (!(mdl.AgeGroup1[1].Equals("") || mdl.AgeGroup2[1].Equals("") || mdl.AgeGroup3[1].Equals("")) && !(mdl.ListOfSelectedStates == null))
            {
                modelView = mgr.getModelToShowReportAsPerAgeGroupAndSelectedStates(mdl);
            }
            else if (!(mdl.ListOfSelectedStates == null))
            {
                modelView = mgr.getModelToShowReportAsPerSelectedStates(mdl);
            }
            else if (!(mdl.AgeGroup1[1].Equals("") || mdl.AgeGroup2[1].Equals("") || mdl.AgeGroup3[1].Equals("")))
            {
                modelView = mgr.getModelToShowReportAsPerAgeGroup(mdl);
            }
            return(View(modelView));
        }