public bool AddContactPerson(ContactPerson CP) { var res = DBDataExtractor <ContactPerson> .AddItem(DBProvider.Client.CreateContactPerson, CP); if (res > 0) { CP.Id = res; ContactPerson.Add(CP); } return(res > 0); }