public ActionResult AnhadirTest(int?idCurso, int?idTest)
        {
            if (idCurso == null || idTest == null)
            {
                return(Content("algo anda mal, evita navegar a mano"));
            }



            TestCurso tc = new TestCurso();

            tc.TestID  = (int)idTest;
            tc.CursoID = (int)idCurso;

            TestsCursosController tcController = new TestsCursosController();

            tcController.Create(tc);

            return(RedirectToAction("Index"));
        }
        public ActionResult QuitarDelCurso(int?id)
        {
            if (id == null)
            {
                return(HttpNotFound());
            }

            TestCurso tc = db.TestCursoes.Find(id);

            if (tc == null)
            {
                return(Content("Intente no navegar a mano"));
            }


            TestsCursosController tcController = new TestsCursosController();

            tcController.DeleteConfirmed((int)id);

            return(RedirectToAction("Test", new { id = tc.TestID }));
        }