Ejemplo n.º 1
0
        public IActionResult AddClassAJAX(int classID)
        {
            SqlDataAccess data = new SqlDataAccess();

            ClaimsPrincipal currentUser   = this.User;
            string          currentUserId = currentUser.FindFirst(ClaimTypes.NameIdentifier).Value;

            data.AddStudentToClass(currentUserId, classID);

            return(RedirectToAction("Dashboard"));
        }