public async Task Atualizar(Imovel imovel)
        {
            if (!ExecutarValidacao(new ImovelValidation(), imovel))
            {
                return;
            }

            await _imovelRepository.Atualizar(imovel);
        }
Exemple #2
0
 public IActionResult Atualizar(int id, Imovel imovel)
 {
     _imovelRepository.Atualizar(id, imovel);
     return(StatusCode(200));
 }