Example #1
0
 public void AddClient(Person client)
 {
     if (ClientInBase(client) == false)
     {
         clients.Add(client);
     }
 }
Example #2
0
        bool ClientInBase(Person client)
        {
            bool clientInBase = false;

            foreach (var cl in clients)
            {
                if (cl.FullName == client.FullName)
                {
                    clientInBase = true;
                    break;
                }
            }
            return clientInBase;
        }