public ActionResult Create(Course course) { if (ModelState.IsValid) { db.create(course); db.SaveChanges(); return RedirectToAction("Index"); } return View(course); }
public Course edit(Course course) { return new JavaScriptSerializer().Deserialize<Course>( new Enlace().EjecutarAccion(url + "/" + course.ID.ToString() + data, "PUT", course)); }
// public Course create(Course courses) { return new JavaScriptSerializer().Deserialize<Course>( new Enlace().EjecutarAccion(url + ".json", "POST", courses)); }
public ActionResult Edit(Course course) { db.edit(course); return View(course); }