using CZFW.MDB.Util; using MongoDB.Bson; using System; using System.Collections.Generic; using System.Text; namespace CZFW.MDB { public class SEOShareRepository : ISEOShare { IMongoRepository repository; public SEOShareRepository(IMongoRepository repo) { repository = repo; } public BsonDocument GetSEOShare(string path) { repository.SetCurrentTable(Constants.SEOSHARE_TABLE_NAME); var res = repository.GetOne($"{{url:'{path.Trim()}'}}"); return res; } } }