public void Delete(string id) { var filterId = Builders <ProjectModel> .Filter.Eq(x => x.Id, id); ProjectsCollection.FindOneAndDelete(filterId); }