public ActionResult CommonQuesDetail(int id) { CommonQuesContext commonQuesContext = new CommonQuesContext(); CommonQues singleCommonQues = commonQuesContext.commonQuesLists.Find(id); return(View(singleCommonQues)); }
public ActionResult Index(int page_id = 1) { CommonQuesContext commonQuesContext = new CommonQuesContext(); IEnumerable <CommonQues> questionList = commonQuesContext.commonQuesLists.ToList(); MulltiPageDisplayContrler multiPagesContrler = new MulltiPageDisplayContrler(questionList, 12, 5, page_id); return(View(multiPagesContrler)); }