Пример #1
0
        public override void RemoveChild(AssestmentContext dbContext, BaseEntity childToRemove)
        {
            var itemToRemove = PossibleAnswers.FirstOrDefault(x => x.InternalId == childToRemove.InternalId);

            PossibleAnswers.Remove(itemToRemove);
            dbContext.PossibleAnswers.Remove(itemToRemove);
        }
Пример #2
0
        public override void RemoveChild(AssestmentContext dbContext, BaseEntity childToRemove)
        {
            var itemToRemove = Questions.FirstOrDefault(x => x.InternalId == childToRemove.InternalId);

            Questions.Remove(itemToRemove);
            dbContext.Questions.Remove(itemToRemove);
        }
Пример #3
0
 public override void RemoveChild(AssestmentContext dbContext, BaseEntity childToRemove)
 {
 }
Пример #4
0
 public abstract void RemoveChild(AssestmentContext dbContext, BaseEntity childToRemove);