Example #1
0
        private IEntitySlim GetTrashedParent(TObject item)
        {
            if (!item.Trashed || string.IsNullOrWhiteSpace(relationAlias))
            {
                return(null);
            }

            var parents = relationService.GetByChild(item, relationAlias);

            if (parents != null && parents.Any())
            {
                return(entityService.Get(parents.FirstOrDefault().ParentId));
            }

            return(null);
        }