/// <summary>
 /// Displays student by searched Id.
 /// </summary>
 /// <param name="id"></param>
 public void DisplayStudentById(int id)
 {
     AllUsers.Clear();
     foreach (Student p in AllStudents.ToList())
     {
         if (p.StudentId == id)
         {
             AllUsers.Add(p);
         }
     }
 }
 /// <summary>
 /// We get the picked student and sends it to be deleted from DB
 /// </summary>
 /// <param name="student"></param>
 public void DeleteStudent(Student student)
 {
     ApiHelper.Instance.DeleteStudent(student.StudentId);
     foreach (Student s in AllStudents.ToList())
     {
         if (s.StudentId == student.StudentId)
         {
             AllStudents.Remove(s);
             AllUsers.Remove(s);
         }
     }
 }