public SupplerCompanies GetSupplerCompanyById(string id)
        {
            var company = SupplerCompaniesCollection.Find(new BsonDocument {
                { "_id", new ObjectId(id) }
            }).FirstAsync().Result;

            return(company);
        }
        public List <SupplerCompanies> GetAllSupplerCompanies()
        {
            var query = SupplerCompaniesCollection.Find(new BsonDocument()).ToListAsync();

            return(query.Result);
        }