Пример #1
0
        public IActionResult UpdateStudent(Student student)
        {
            //get the uid from the session
            int uID = Convert.ToInt32(HttpContext.Session.GetString("uID")); //reads from the session

            student.UID = uID;

            DALStudent dp = new DALStudent(configuration);

            dp.UpdateUser(student);
            return(View("Registration", student));
        }