func (VS *Server) registerAuditAndEvent(c *gin.Context, audit Audit, object interface{}, id bson.ObjectId) {
	// Audit
	VS.addElementToDatabaseWithoutRegister(c, audit, audit.ID, "h_data", "newVillage", "addAuditToDatabase")
	// 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)
	VS.addElementToDatabaseWithoutRegister(c, event, event.ID, "h_data", "newVillage", "VS.addEventToDatabase")
}
// This methos registers the audit and event from the data given
This methos registers the audit and event from the data given
// This methos registers the audit and event from the data given
func (VS *Server) registerAuditAndEvent(c *gin.Context, audit Audit, object interface{}, id bson.ObjectId) {
	VS.addElementToDatabaseWithoutRegister(c, audit, audit.ID, "h_data", "newVillage", "addAuditToDatabase")
	gob.Register(object)
	event := VS.getEvent(c, nil, object, audit.ID)
	VS.addElementToDatabaseWithoutRegister(c, event, event.ID, "h_data", "newVillage", "VS.addEventToDatabase")
}
func ( VS * Server ) registerAuditAndEvent ( c * gin . Context , audit Audit , object interface { } , id bson . ObjectId ) { VS . addElementToDatabaseWithoutRegister ( c , audit , audit . ID , " " , " " , " " ) gob . Register ( object ) event := VS . getEvent ( c , nil , object , audit . ID ) VS . addElementToDatabaseWithoutRegister ( c , event , event . ID , " " , " " , " " ) }
This methos registers the audit and event from the data given
This methos registers the audit and event from the data given
// Audit // EventDB // We need to register the struct as an interface to save it on the EventDB