예제 #1
0
        public void DeleteStudent(int id)
        {
            List <Student> st = studentDataService.GetStudents();

            for (int i = 0; i < st.Count; i++)
            {
                if (st[i].StudentId == id)
                {
                    st[i] = null;
                    //write again...
                }
            }
        }