Refactoring some code and change logic and make sure to reduce db calls and avoid redundants

This commit is contained in:
franc
2025-04-16 17:22:19 +02:00
parent d2560e2971
commit 825818645a
4 changed files with 25 additions and 44 deletions
@@ -8,12 +8,10 @@
Task<Instruction> CreateInstructionToRecipeAsync(Guid recipeId, string description, int number);
Task<List<Instruction>> GetInstructionsByRecipeIdAsync(Guid recipeId);
Task RemoveInstructionFromRecipeAsync(Guid recipeId, Guid instructionId);
Task SwapInstructionOrderAsync(Instruction a, Instruction b);
Task<Instruction> GetInstructionWithRecipeAsync(Guid instructionId);
Task<List<Instruction>> GetInstructionsByInstructionIdAsync(Guid instructionId);
}
}