public BLModel.Paged.PreTestQuestion GetAllPagedPreTestQuestionByPreTestID(int pretestid, int skip, int take) { return(new BLModel.Paged.PreTestQuestion { TotalCount = _preTestQuestionRepository.GetPreTestQuestionCountByPreTestID(preTestQues => preTestQues.PreTestID.Equals(pretestid)), PreTestQuestions = _preTestQuestionRepository.GetAllPagedPreTestQuestionByPreTestID(preTestQues => preTestQues.PreTestID.Equals(pretestid), skip, take).ToList() }); }