public void atualizar(int id, Paciente paciente) { var resultadoPaciente = this.buscaPorId(id); if (resultadoPaciente == null) { throw new ArgumentException("Paciente não existe"); } paciente.id = id; _repository.AtualizarPaciente(paciente); }
public void atualizar(int id, Paciente paciente) { var resultadoPaciente = this.buscaPorId(id); if (resultadoPaciente == null) { throw new ArgumentException("Paciente não existe"); } paciente.id = id; _repository.AtualizarPaciente(paciente); }