public IList<EFMapping.Question> Posts(int pageNo, int pageSize)
 {
     dbContext = new PIdbEntities();
     IList<EFMapping.Question> questions = (from a in dbContext.Questions
                                            select a).ToList();
     return questions;
 }
 public int TotalPosts()
 {
     dbContext = new PIdbEntities();
     return dbContext.Questions.Count();
 }