@Override
	public int create(Recipe recipe){
		Map<Ingredient,Quantity> ingredients = new HashMap<Ingredient,Quantity>();
		for(Ingredient i : recipe.getIngredients().keySet()){
			Ingredient ingredient = ingredientService.create(i);
			ingredients.put(ingredient, recipe.getIngredients().get(i));
		}
		recipe.setIngredients(ingredients);
		return recipeRepository.addRecipe(recipe);
	}