コード例 #1
0
        public ActionResult Mark(string username, string classId, int classNumber)
        {
            HomeworkModel homeworkModel = new HomeworkModel();

            ViewBag.homework = homeworkModel.GetHomework(username, classId, classNumber);
            return(View());
        }
コード例 #2
0
        public ActionResult SubmitHomework(string classId, int classNumber)
        {
            string        username      = HttpContext.Request.Cookies["login"]["name"];
            HomeworkModel homeworkModel = new HomeworkModel();

            ViewBag.homework = homeworkModel.GetHomework(username, classId, classNumber);
            return(View());
        }