Ejemplo n.º 1
0
        public ActionResult UpdateRegister(string classId, string username)
        {
            RegisterModel registerModel = new RegisterModel();

            ViewBag.register = registerModel.GetRegister(classId, username);
            return(View());
        }
        public ActionResult RegisterInfo(string classId)
        {
            string        username      = HttpContext.Request.Cookies["login"]["name"];
            RegisterModel registerModel = new RegisterModel();

            ViewBag.register = registerModel.GetRegister(classId, username);
            return(View());
        }
        public ActionResult ViewMadeMistake(string classId)
        {
            string       username     = HttpContext.Request.Cookies["login"]["name"];
            MistakeModel mistakeModel = new MistakeModel();

            ViewBag.madeMistakes = mistakeModel.GetListMadeMistakeOfRegister(username, classId);
            RegisterModel registerModel = new RegisterModel();

            ViewBag.register = registerModel.GetRegister(classId, username);
            return(View());
        }