示例#1
0
        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);
        }