func (VS *Server) addElementToDatabaseWithRegister(c *gin.Context, i interface{}, ID bson.ObjectId, IDservice bson.ObjectId, class string, method string, operation string) {
	err := VS.DataBase.Upsert(ID, i)
	VS.checkOperation(c, class, method, operation, err)
	VS.registerAddDatabaseMovement(c, i, ID, IDservice)
}
// This method adds any element to the DB and takes care about all related , putting all the changes and the audits
This method adds any element to the DB and takes care about all related , putting all the changes and the audits
// This method adds any element to the DB and takes care about all related putting all the changes and the audits
func (VS *Server) addElementToDatabaseWithRegister(c *gin.Context, i interface{}, ID bson.ObjectId, IDservice bson.ObjectId, class string, method string, operation string) {
	err := VS.DataBase.Upsert(ID, i)
	VS.checkOperation(c, class, method, operation, err)
	VS.registerAddDatabaseMovement(c, i, ID, IDservice)
}
func ( VS * Server ) addElementToDatabaseWithRegister ( c * gin . Context , i interface { } , ID bson . ObjectId , IDservice bson . ObjectId , class string , method string , operation string ) { err := VS . DataBase . Upsert ( ID , i ) VS . checkOperation ( c , class , method , operation , err ) VS . registerAddDatabaseMovement ( c , i , ID , IDservice ) }
This method adds any element to the DB and takes care about all related , putting all the changes and the audits
This method adds any element to the DB and takes care about all related putting all the changes and the audits