func (VS *Server) registerAddDatabaseMovementFromCentral(c *gin.Context, object interface{}, objectID bson.ObjectId) {
	// Get the Audit, EventDB and save the object
	// Audit
	audit := VS.getAuditFromCentral(c, object, objectID, Created)
	err := VS.DataBase.Upsert(audit.ID, audit)
	VS.checkOperation(c, "transactions", "registerAddDatabaseMovement", "Insert audit in DB-Upsert", err)
	// EventDB
	// We need to register the struct as an interface to save it on the EventDB
	gob.Register(object)
	event := VS.getEvent(c, nil, object, audit.ID)
	err = VS.DataBase.Upsert(event.ID, event)
	VS.checkOperation(c, "transactions", "registerAddDatabaseMovement", "Insert event in DB-Upsert", err)
}
// registerAddDatabaseMovementFromCentral adds the element to DB and registers the audit and the event related with the object created or modified. Sets the Central as ServiceID in the audit
registerAddDatabaseMovementFromCentral adds the element to DB and registers the audit and the event related with the object created or modified. Sets the Central as ServiceID in the audit
// registerAddDatabaseMovementFromCentral adds the element to DB and registers the audit and the event related with the object created or modified . Sets the Central as ServiceID in the audit
func (VS *Server) registerAddDatabaseMovementFromCentral(c *gin.Context, object interface{}, objectID bson.ObjectId) {
	audit := VS.getAuditFromCentral(c, object, objectID, Created)
	err := VS.DataBase.Upsert(audit.ID, audit)
	VS.checkOperation(c, "transactions", "registerAddDatabaseMovement", "Insert audit in DB-Upsert", err)
	gob.Register(object)
	event := VS.getEvent(c, nil, object, audit.ID)
	err = VS.DataBase.Upsert(event.ID, event)
	VS.checkOperation(c, "transactions", "registerAddDatabaseMovement", "Insert event in DB-Upsert", err)
}
func ( VS * Server ) registerAddDatabaseMovementFromCentral ( c * gin . Context , object interface { } , objectID bson . ObjectId ) { audit := VS . getAuditFromCentral ( c , object , objectID , Created ) err := VS . DataBase . Upsert ( audit . ID , audit ) VS . checkOperation ( c , " " , " " , " " , err ) gob . Register ( object ) event := VS . getEvent ( c , nil , object , audit . ID ) err = VS . DataBase . Upsert ( event . ID , event ) VS . checkOperation ( c , " " , " " , " " , err ) }
registerAddDatabaseMovementFromCentral adds the element to DB and registers the audit and the event related with the object created or modified.
registerAddDatabaseMovementFromCentral adds the element to DB and registers the audit and the event related with the object created or modified .
// Get the Audit, EventDB and save the object // Audit // EventDB // We need to register the struct as an interface to save it on the EventDB