implement ingredient management methods

This commit is contained in:
franc
2025-04-08 14:30:12 +02:00
parent e438e8a114
commit ffebc376e1
2 changed files with 17 additions and 41 deletions
@@ -1,21 +1,16 @@
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<Ingredient> CreateIngredientToRecipeAsync(Recipe recipe, string ingredientName);
Task UpdateIngredientAsync(Ingredient ingredient);
Task<List<RecipeIngredient>> GetIngredientsByRecipeIdAsync(Guid recipeId);
Task<List<Ingredient>> GetIngredientsByNameAsync(string name);
Task RemoveIngredientFromRecipeAsync(Recipe recipe, Guid ingredientId);
Task<Ingredient> GetIngredientByIdAsync(Guid ingredientId);
}
}