public void Add(WebRequestModel entity)
        {
            if (!string.IsNullOrEmpty(entity._id.ToString()))
            {
                return;
            }

            EntityCollection.InsertOneAsync(WebRequestModel.WebRequestModelToBsonDocument(entity));
        }
        public void Update(string objectId, WebRequestModel employee)
        {
            var updateBuilder = Builders<BsonDocument>.Update
                .Set("RequestedOn", employee.RequestedOn.ToString(CultureInfo.InvariantCulture))
                .Set("SiteName", employee.SiteName)
                .Set("UserAgent", employee.UserAgent)
                .Set("Referrer", employee.Referrer)
                .Set("Url", employee.Url)
                .Set("Port", employee.Port)
                .Set("Authority", employee.Authority);

            EntityCollection.UpdateOneAsync(Builders<BsonDocument>.Filter.Eq("_id", objectId), updateBuilder);
        }
        public static BsonDocument WebRequestModelToBsonDocument(WebRequestModel model)
        {
            var document = new BsonDocument()
            {
                {"RequestedOn", model.RequestedOn.ToString()},
                {"SiteName", model.SiteName},
                {"UserAgent", model.UserAgent},
                {"Referrer", model.Referrer},
                {"Url", model.Url},
                {"Port", model.Port},
                {"Authority", model.Authority}
            };

            return document;
        }