namespace Francesco.Recipes.World.Repositories.Ingredient { using Francesco.Recipes.World.Models.BackendModels.Ingredient; using Francesco.Recipes.World.Models.BackendModels.Recipe; using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient; public interface IIngredientRepository { Task CreateIngredientToRecipeAsync(Recipe recipe, string ingredientName); Task UpdateIngredientAsync(Ingredient ingredient); Task> GetIngredientsByRecipeIdAsync(Guid recipeId); Task> GetIngredientsByNameAsync(string name); Task RemoveIngredientFromRecipeAsync(Recipe recipe, Guid ingredientId); Task GetIngredientByIdAsync(Guid ingredientId); } }