예제 #1
0
        public async Task DeleteAsync(int settlementId)
        {
            Settlement settlement = await _settlementRepository.FindByIdAsync(settlementId);

            if (settlement == null)
            {
                throw new ResourceNotFoundException();
            }

            await _settlementRepository.DeleteAsync(settlement);
        }