Example #1
0
 public bool Remove(string name, string dateofbirth)
 {
     if (FindUser(name, dateofbirth) != null)
     {
         Users.Remove(FindUser(name, dateofbirth));
         return(true);
     }
     return(false);
 }
Example #2
0
 public bool Remove(int id)
 {
     if (FindUser(id) != null)
     {
         Users.Remove(FindUser(id));
         return(true);
     }
     return(false);
 }