add instruction management for recipes
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
namespace Francesco.Recipes.World.Repositories.Instruction
|
||||
{
|
||||
using Francesco.Recipes.World.Models.BackendModels.Instruction;
|
||||
using Francesco.Recipes.World.Models.BackendModels.Recipe;
|
||||
|
||||
public interface IInstructionRepository
|
||||
{
|
||||
Task<Instruction> GetInstructionAsync(Guid instructionId);
|
||||
|
||||
Task<Instruction> CreateInstructionToRecipeAsync(Guid recipeId, string description, int number);
|
||||
|
||||
Task<List<Instruction>> GetInstructionsByRecipeIdAsync(Guid recipeId);
|
||||
|
||||
Task RemoveInstructionFromRecipeAsync(Recipe recipe, Guid instructionId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user