Exemplo n.º 1
0
        public JsonResult FillSubjects(int?gradeId)
        {
            var subj = new SubjectDAO().GetAllSubjectsByGrade(gradeId);

            return(Json(new SelectList(subj.ToArray(), "Id", "Name"), JsonRequestBehavior.AllowGet));
        }