Esempio n. 1
0
        public ActionResult GetGradeDropDownList()
        {
            var bsGrade = new BLGrade();

            var GradeList = bsGrade.GetGradeSelectListItem(0, int.MaxValue);

            return(Json(GradeList, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public ActionResult LoadManagementSingleTeamGradingForm(int id)
        {
            var bsTeam   = new BLTeam();
            var teamInfo = bsTeam.GetTeamById(id);
            var teamName = teamInfo.Name;
            var bsGrade  = new BLGrade();

            var GradeList = bsGrade.GetGradeSelectListItem(0, int.MaxValue);

            return(View("../Judge/GradingTeamForm", new VmSingleTeamGradingManagement
            {
                CurrentUserId = CurrentUserId,
                GradeList = GradeList,
                TeamId = id,
                TeamName = teamName,
                Task = teamInfo.Task,
                University = teamInfo.University,
            }));
        }