public async Task <Estabelecimento> AdicionarEstabelecimentoAsync(Estabelecimento estabelecimentoDTO) { Estabelecimento retornoEstabelecimento = await _estabelecimentoRepository.BuscarPorCnpjAsync(estabelecimentoDTO.CNPJ.ToString()); if (retornoEstabelecimento != null) { _notificador.Add("Estabelecimento", "Já existe estabelecimento com esse CNPJ"); return(null); } var estab = await _estabelecimentoRepository.AdicionarAsync(estabelecimentoDTO); return(estab); }