public Question GetById(int questionId) { return(_questionDal.Get(p => p.Id == questionId)); }
public IDataResult <List <Question> > GetAll() { return(new SuccessDataResult <List <Question> >(_questionDal.Get().ToList())); }
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)); }
public IDataResult <Question> GetQuestionById(int questionId) { var model = _questionDal.Get(i => i.Id == questionId); return(new SuccessDataResult <Question>(model, Messages.Success)); }
public IDataResult <Question> Get(int questionId) { return(new SuccessDataResult <Question>(_questionDal.Get(question => question.QuestionId == questionId))); }