public async Task <Estabelecimento> AlterarEstabelecimentoAsync(Estabelecimento estabelecimentoDTO) { Estabelecimento retornoEstabelecimento = await _estabelecimentoRepository.BuscarPorCnpjAsync(estabelecimentoDTO.CNPJ.ToString()); if (retornoEstabelecimento == null) { _notificador.Add("Estabelecimento", "Não existe estabelecimento com esse CNPJ"); return(null); } var estab = await _estabelecimentoRepository.AlterarAsync(estabelecimentoDTO); return(estab); }