public async Task Atualizar(Imovel imovel) { if (!ExecutarValidacao(new ImovelValidation(), imovel)) { return; } await _imovelRepository.Atualizar(imovel); }
public IActionResult Atualizar(int id, Imovel imovel) { _imovelRepository.Atualizar(id, imovel); return(StatusCode(200)); }