public void UpdateQuestion(QuestionEntity e)
 {
     questionRepository.Update(e.ToDalQuestion());
     uow.Commit();
 }
 public IEnumerable<AnswerEntity> GetAllAnswers(QuestionEntity question)
 {
     return answerRepository.GetAllAnswers(question.ToDalQuestion()).Select(answer => answer.ToBllAnswer());
 }
 public void CreateQuestion(QuestionEntity e)
 {
     e.QuestionNumberInTest = GetByPredicate(entity => entity.TestId == e.TestId).Count() + 1;
     questionRepository.Create(e.ToDalQuestion());
     uow.Commit();
 }
 public bool ExistAnswer(QuestionEntity question, AnswerEntity answer)
 {
     return answerRepository.ExistAnswer(question.ToDalQuestion(), answer.ToDalAnswer());
 }