public IActionResult Put(long id, [FromBody] RegistroPoaDto registroPoaDto, [FromServices] IComandosRegistroPoa comandosRegistroPoa) { registroPoaDto.Id = id; comandosRegistroPoa.Atualizar(registroPoaDto); return(Ok()); }
public IActionResult Post([FromBody] RegistroPoaDto registroPoaDto, [FromServices] IComandosRegistroPoa comandosRegistroPoa) { comandosRegistroPoa.Cadastrar(registroPoaDto); return(Ok()); }
public IActionResult Delete(long id, [FromServices] IComandosRegistroPoa comandosRegistroPoa) { comandosRegistroPoa.Excluir(id); return(Ok()); }