public ActionResult Create(Professor professor) { if (ModelState.IsValid) { Repositorio.Incluir(professor); return RedirectToAction("Index"); } return View(professor); }
public ActionResult Edit(Professor professor) { if (ModelState.IsValid) { Repositorio.Atualizar(professor); return RedirectToAction("Index"); } return View(professor); }