Example #1
0
    public void TestWS()
    {
        anighthawks2_VAServices.Service1Client client = new
                                                        anighthawks2_VAServices.Service1Client();
        string returnString;

        returnString = client.GetAllVAData();
        BsonDocument resultBson;

        resultBson = BsonDocument.Parse(returnString);
    }
Example #2
0
    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);
    }