private void SetUpPlanYearsViewData(string planId)
        {
            //get the available plan years that have been setup for the plan associated with the incoming plan
            var planYearCollection = _companiesReadModel.GetPlanYearsForPlan(planId);
            //derive a list of years
            var planYears = planYearCollection.Select(planyear => planyear.Year).ToList();

            ViewData["PlanYears"] = new SelectList(planYears);
        }
Esempio n. 2
0
        //
        // GET: /Plans/PlanYearList/

        public ActionResult PlanYearList(string planId)
        {
            var planYears = _companiesReadModel.GetPlanYearsForPlan(planId);

            return(View("PlanYearList", planYears));
        }