示例#1
0
        public void DeleteWorker(string id)
        {
            Worker user = getWorker(id);

            collectionWorker.DeleteOne(a => a.ID == user.ID);
        }
示例#2
0
 public void AddWorker(Worker worker)
 {
     collectionWorker.InsertOne(worker);
 }