saveAllergens

fun saveAllergens(allergens: List<Allergen>)

Save a list of allergens to the local DB.

Allergen and AllergenName has One-To-Many relationship, therefore we need to save them separately.

Parameters

allergens

The list of allergens to be saved.