public IActionResult DeleteSeguro(int?id) { if (id == null) { return(NotFound()); } var obj = _seguroService.FindById(id.Value); if (obj == null) { return(NotFound()); } return(View(obj)); }