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(); }
public async Task ExcluirPessoa(IExcluirPessoaSignature signature) { await _pessoaService.ExcluirPessoa(signature); }
public async Task ExcluirPessoa(IExcluirPessoaSignature signature) { await _pessoaRepository.ExcluirPessoa(signature); }