Пример #1
0
        private FileShareRecord ToFileShareRecord(SecurityTreeRecord r)
        {
            var result = ToFileShareRecord(r.DbFilesSecurity);

            result.Level = r.DbFolderTree?.Level ?? -1;
            return(result);
        }
Пример #2
0
        private FileShareRecord ToFileShareRecord(SecurityTreeRecord r)
        {
            var result = ToFileShareRecord(r.DbFilesSecurity);

            if (r.DbFolderTree != null)
            {
                result.EntryId = r.DbFolderTree.FolderId;
            }

            result.Level = r.DbFolderTree?.Level ?? -1;

            return(result);
        }