Esempio n. 1
0
        protected override void DeleteEntity(Series local, bool deleteFiles)
        {
            _logger.Trace($"Removing links for series {local} author {local.ForeignAuthorId}");
            var children = GetLocalChildren(local, null);

            _linkService.DeleteMany(children);

            if (!_linkService.GetLinksBySeries(local.Id).Any())
            {
                _logger.Trace($"Series {local} has no links remaining, removing");
                _seriesService.Delete(local.Id);
            }
        }
Esempio n. 2
0
 protected override List <SeriesBookLink> GetLocalChildren(Series entity, List <SeriesBookLink> remoteChildren)
 {
     return(_linkService.GetLinksBySeries(entity.Id));
 }