17 lines
545 B
C#
17 lines
545 B
C#
namespace Francesco.Recipes.World.Repositories.Ingredient
|
|
{
|
|
using Francesco.Recipes.World.Models.BackendModels.Ingredient;
|
|
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
|
|
|
|
public interface IIngredientRepository
|
|
{
|
|
Task UpdateIngredientAsync(Ingredient ingredient);
|
|
|
|
Task<List<RecipeIngredient>> GetIngredientsByRecipeIdAsync(Guid recipeId);
|
|
|
|
Task<List<Ingredient>> GetIngredientsByNameAsync(string name);
|
|
|
|
Task<Ingredient> GetIngredientByIdAsync(Guid ingredientId);
|
|
}
|
|
}
|