Exemplo n.º 1
0
        public async Task ExcluirPessoa(IExcluirPessoaSignature signature)
        {
            using SqlConnection sql  = new SqlConnection(_connectionString);
            using SqlCommand command = new SqlCommand("dbo.P_ExcluirPessoa", sql);

            command.CommandType = CommandType.StoredProcedure;
            command.Parameters.Add(new SqlParameter("@CodPessoa", SqlDbType.Int)
            {
                Value = signature.CodigoPessoa
            });

            await sql.OpenAsync();

            await command.ExecuteNonQueryAsync();
        }
Exemplo n.º 2
0
 public async Task ExcluirPessoa(IExcluirPessoaSignature signature)
 {
     await _pessoaService.ExcluirPessoa(signature);
 }
Exemplo n.º 3
0
 public async Task ExcluirPessoa(IExcluirPessoaSignature signature)
 {
     await _pessoaRepository.ExcluirPessoa(signature);
 }