public Question GetById(int questionId)
 {
     return(_questionDal.Get(p => p.Id == questionId));
 }
Esempio n. 2
0
 public IDataResult <List <Question> > GetAll()
 {
     return(new SuccessDataResult <List <Question> >(_questionDal.Get().ToList()));
 }
Esempio n. 3
0
        public void DeleteById(int entityID)
        {
            Question question = _questionDal.Get(a => a.ID == entityID);

            Delete(question);
        }
 public Question GetWithId(int id)
 {
     return(_context.Get(q => q.Id == id && !q.IsDelete));
 }
Esempio n. 5
0
        public IDataResult <Question> GetQuestionById(int questionId)
        {
            var model = _questionDal.Get(i => i.Id == questionId);

            return(new SuccessDataResult <Question>(model, Messages.Success));
        }
Esempio n. 6
0
 public IDataResult <Question> Get(int questionId)
 {
     return(new SuccessDataResult <Question>(_questionDal.Get(question => question.QuestionId == questionId)));
 }