Ejemplo n.º 1
0
        public string AlternateSearch(AlternateSearch alternateSearch)
        {
            //TODO: finsih this
            //string result = "noid://test/ands348234udsahda4e384hasodh3-248-hdasd";
            string result = "no match found";

            return(result);
        }
Ejemplo n.º 2
0
        public bool AddAlternateSearch(AlternateSearch alternateSearch)
        {
            bool successful = false;

            try
            {
                IMongoCollection <AlternateSearch> collection = _database.GetCollection <AlternateSearch>("AlternateSearch");
                collection.InsertOneAsync(alternateSearch);
                successful = true;
            }
            catch (Exception ex)
            {
                _exceptions.Add(ex);
            }
            return(successful);
        }