Пример #1
0
 public async Task Executar(Anuncio anuncio)
 {
     try
     {
         await _anuncioRepository.Criar(anuncio);
     }
     catch (System.Exception)
     {
         this.Erros.Add("Erro", "Ocorreu um erro ao criar um anúncio.");
     }
 }