public IActionResult VisualizarCompartilhado(string id) { var viewModel = _exameService.Editar(id); if (viewModel == null) { return(RedirectToAction("Index", new { })); } return(View(viewModel)); }
public ActionResult Edit(int id, ExameModel exameModel) { if (ModelState.IsValid) { var exame = _mapper.Map <Exame>(exameModel); _exameService.Editar(exame); } return(RedirectToAction(nameof(Index))); }