public void ExcluirCliente(int id) { Cliente c = _clienteRepository.GetById(id); if (c == null) { throw new ArgumentException("Cliente não encontrado"); } _clienteRepository.Remove(c); }
} //GetAll public Cliente GetById(int id) { return(_repositoryCliente.GetById(id)); } //GetById