Beispiel #1
0
        public async Task DeleteAsync(int id)
        {
            var deleteAllCarsFromPessoaTask = _carroService.DeleteAllCarsFromPessoaAsync(id);
            var deletePessoaTask            = _pessoaRepository.DeleteAsync(id);

            await Task.WhenAll(deleteAllCarsFromPessoaTask, deletePessoaTask);
        }