public async Task DeleteAsync(int settlementId) { Settlement settlement = await _settlementRepository.FindByIdAsync(settlementId); if (settlement == null) { throw new ResourceNotFoundException(); } await _settlementRepository.DeleteAsync(settlement); }