Пример #1
0
        public JsonResult ThemN(int[] a, int id_student)
        {
            //mang a
            var id = db.STUDENTs.SingleOrDefault(x => x.IDStudent == id_student);

            if (id != null)
            {
                for (int i = 1; i <= a.Length; i++)
                {
                    if (dao.Check(id_student, a[i]))
                    {
                        dao.Class_student(id_student, a[i]);
                    }
                }
            }
            return(Json(new
            {
                status = true
            }));
        }