Ejemplo n.º 1
0
        public long Insert(NewChoiceModel item)
        {
            Choice choice = new Choice
            {
                Content = item.Content,
                IsCorrect = item.IsCorrect,
                QuestionId = item.QuestionId,
            };

            _choiceRepo.Insert(choice);
            return choice.ChoiceId;
        }
Ejemplo n.º 2
0
 partial void DeleteChoice(Choice instance);
Ejemplo n.º 3
0
 partial void UpdateChoice(Choice instance);
Ejemplo n.º 4
0
 partial void InsertChoice(Choice instance);