Пример #1
0
        public void Delete(int id)
        {
            _logger.LogInformation($"deleting photo group with id {id}");
            if (_photoRepository.PhotosExistWithGroupId(id))
            {
                throw new BusinessException($"Photo group with id: {id} contains photos that must be deleted first");
            }

            _photoGroupRepository.Delete(id);
        }