public Task <bool> Handle(ClienteSalvarCommand command) { if (!command.IsValid()) { return(Task.FromResult(false)); } var cliente = _clienteRepository.Buscar(command.Nome); if (cliente == null) { _clienteRepository.Salvar(command.Nome); } else { _clienteRepository.Ataulizar(command.Nome); } return(Task.FromResult(true)); }