Example #1
0
        // GET: IndividualExams
        public ActionResult Index()
        {
            var list = context.ListAll();
            IndividualExamMainModel viewModel = new IndividualExamMainModel();

            viewModel.ListView = list;

            var total      = GetTotalExam();
            var examList   = getExamList(total);
            var selectlist = GetSelectListItems(examList);

            viewModel.TotalExam = selectlist;
            return(View(viewModel));
        }
Example #2
0
        public ActionResult Index(IndividualExamMainModel model)
        {
            var ID  = model.CaptID;
            var Act = model.Action;

            if (Act == "RefreshAll" && ID == 0)
            {
                context.Refresh(ID);
            }
            else
            {
                //
            }

            return(RedirectToAction("Index"));
        }