public void DeleteWorker(string id) { Worker user = getWorker(id); collectionWorker.DeleteOne(a => a.ID == user.ID); }
public void AddWorker(Worker worker) { collectionWorker.InsertOne(worker); }