Beispiel #1
0
 public ActionResult AddProfessorCourse(int idProfessor, int idCourse)
 {
     datosAsociaP p = new datosAsociaP();
     p.course_id = idCourse;
     p.professor_id = idProfessor;
     db.AddProfessorCourse(p);
     db.SaveChanges();
     return RedirectToAction("Asociaciones", new { id = idCourse });
 }
Beispiel #2
0
 public void AddProfessorCourse(datosAsociaP p)
 {
     new Enlace().EjecutarAccion("http://localhost:3000/course_professors.json", "POST", p);
 }