Beispiel #1
0
        public long Insert(NewQuestionRequestModel item)
        {
            Question question = new Question
            {
                Question_ = item.Content,
                SubjectId = item.SubjectId,
                SysUserId = 1, // TODO: Change current sysUser
            };

            _questionRepo.Insert(question);
            return question.QuestionId;
        }
Beispiel #2
0
 partial void DeleteQuestion(Question instance);
Beispiel #3
0
 partial void UpdateQuestion(Question instance);
Beispiel #4
0
 partial void InsertQuestion(Question instance);