public ActionResult Create(TestPlanVM testPlanVM)
        {
            var testPlan = Mapper.Map<TestPlanVM, TestPlan>(testPlanVM);
            db.TestPlans.Add(testPlan);
            db.SaveChanges();

            return RedirectToAction("Index", "TestPlanPerIteration", new { id = testPlanVM.IterationID });
        }
        public ActionResult Edit(TestPlanVM testPlanVM)
        {
            var testPlan = db.TestPlans.Find(testPlanVM.TestPlanID);
            if (testPlan == null) return HttpNotFound();
            db.Entry(testPlan).CurrentValues.SetValues(testPlanVM);
            db.SaveChanges();

            return RedirectToAction("Index", "TestRunsOnTestPlan", new { id = testPlanVM.TestPlanID });
        }
        public ActionResult Create(int id = 0)
        {
            var iteration = db.Iterations.Find(id);
            if (iteration == null) return HttpNotFound();

            var testPlanVM = new TestPlanVM
            {
                IterationID = iteration.IterationID,
                Teams = new SelectList(GetTeamsInProject(), "TeamID", "Name")
            };

            return View("Create", testPlanVM);
        }