Пример #1
0
        public ActionResult Index(int?idx, int?score)
        {
            if (idx == null)
            {
                idx = 0;
            }
            if (score == null)
            {
                score = 0;
            }
            ViewBag.dx    = idx;
            ViewBag.score = score;
            string curso = "Matematica";
            var    list  = pregres.GetPregsCurso(curso);
            var    lt    = list.ElementAt((int)idx);

            return(View(lt));
        }