Ejemplo n.º 1
0
        //Добавление плана-графика
        public ActionResult AddPlan(int groupId)
        {
            Plan plan = new Plan(groupId);

            pDAO.add(plan);
            gDAO.sepPlanStatus(true, groupId);
            plan = pDAO.showPlanInfoByGropId(groupId);
            //List<Step> steps = new List<Step>();
            List <Step>           steps = stepDAO.getStepsByPlanId(plan.id);
            PlanAndStepsViewModel pASVM = new PlanAndStepsViewModel(plan, steps);

            return(RedirectToAction("ShowPlanInfo", new { id = plan.id }));
        }