Ejemplo n.º 1
0
        public async Task DeleteAsync(int diverId)
        {
            var existing = await GetAsync(diverId);

            if (existing == null)
            {
                throw new NotFoundException("Водолаз не найден.");
            }

            await _diverRepository.DeleteAsync(diverId);
        }