Beispiel #1
0
        public User Add(BaseContent content)
        {
            var record = content.Record;

            record.UserRecord = UserRecord;

            // Добавить ассоциации
            UserRecord.ContentRecord.Add(record);

            record.ProposalStatus = IsModerator
                ? ProposalStatus.Added
                : ProposalStatus.Proposed;

            Manager.Container.ContentRecordSet.Add(record);

            return(this);
        }
Beispiel #2
0
 public bool Owns(BaseContent content)
 => UserRecord == content.Record.UserRecord;