public ActionResult Create(EstudanteRemoto.Estudante estudante) { if (ModelState.IsValid) { service.adiciona(estudante); return RedirectToAction("Index"); } return View(estudante); }
public ActionResult Edit(int id, EstudanteRemoto.Estudante estudante) { if (ModelState.IsValid) { service.atualiza(estudante); return RedirectToAction("Index"); } return View(estudante); }