Beispiel #1
0
 public void AddQuestion(int testId, string question)
 {
     DalQuestion dq = new DalQuestion { QuestionText = question, TestId = testId };
     questionRepo.Create(dq);
     uow.Commit();
 }
 public void Delete(DalQuestion e)
 {
     var question = context.Set<Question>().FirstOrDefault(t => t.QuestionId == e.Id);
     context.Set<Question>().Remove(question);
 }
 public void Update(DalQuestion e)
 {
     throw new NotImplementedException();
 }
 public void Create(DalQuestion e)
 {
     context.Set<Question>().Add(e.ToQuestion());
 }