public async Task DeleteAsync(long id) { var item = await _enterpriseRepository.FindByIdAsync(id); if (item == null) { throw new NotFoundException(id); } await _enterpriseRepository.DeleteAsync(item); }