public ActionResult Edit(Estudante estudante) { if (ModelState.IsValid) { using (var client = new EstudanteService.EstudanteServiceClient()) { client.Edit(estudante.MapTo <EstudanteService.Estudante>()); } return(RedirectToAction("Index")); } return(View(estudante)); }
public ActionResult Edit(Estudante estudante) { if (ModelState.IsValid) { using (var client = new EstudanteService.EstudanteServiceClient()) { client.Edit(estudante.MapTo<EstudanteService.Estudante>()); } return RedirectToAction("Index"); } return View(estudante); }