public void TestWS() { anighthawks2_VAServices.Service1Client client = new anighthawks2_VAServices.Service1Client(); string returnString; returnString = client.GetAllVAData(); BsonDocument resultBson; resultBson = BsonDocument.Parse(returnString); }
public BsonDocument GetWSAllMongoData(string criteria) { anighthawks2_VAServices.Service1Client client = new anighthawks2_VAServices.Service1Client(); string returnString; returnString = client.GetAllVAData(); BsonDocument resultBson; resultBson = BsonDocument.Parse(returnString); BsonDocument filteredBson = resultBson[criteria].AsBsonDocument; return(filteredBson); }