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