public StudentBO() { students = new List <StudentVO>(); StudentVO student1 = new StudentVO("Benjamin", 1); StudentVO student2 = new StudentVO("Alice", 2); students.Add(student1); students.Add(student2); }
public void UpdateStudent(StudentVO student) { students.Find(stud => stud.RollNo == student.RollNo).Name = student.Name; Console.WriteLine("Student No {0} updated in the database", student.RollNo); }
public void DeleteStudent(StudentVO student) { students.Remove(student); }