// GET: Quiz public ActionResult Index() { try { TblUser sessionUser = (TblUser)Session["UserSession"]; List <TblQuiz> lstAllQuiz = new List <TblQuiz>(); lstAllQuiz = quizRepository.GetAllQuiz(sessionUser.TenantId); return(View("QuizList", lstAllQuiz)); } catch (Exception ex) { //newException.AddDummyException("222222"); newException.AddException(ex); return(View("QuizList")); } }