public Guid AddSession(GpsSession session)
 {
     // serialize location
     BsonDocument doc = session.ToBsonDocument();
     // Add extra data (in case we have)
        Utilities.AddExtraData(doc, session);
     // insert into database
     DB.GetCollection<BsonDocument>(_sessionColection).Insert<BsonDocument>(doc);
     return doc["_id"].AsGuid;
 }
 public virtual Guid AddSession(GpsSession session)
 {
     return dataProvider.AddSession(session);
 }
 public void UpdateSession(GpsSession session)
 {
     DB.GetCollection<GpsSession>(_sessionColection).Save<GpsSession>(session);
 }