- Forgive an IFormFile Parameter for CreateInstructionWithImageToRecipeAsync

-Refactor instruction number generation to simplify null-check and remove redundant increment
- By creating an InstructionFile put Recipe Id to null for avoid Datainconsistency
This commit is contained in:
franc
2025-05-05 12:24:20 +02:00
parent 080c4eda78
commit a76f757081
2 changed files with 27 additions and 4 deletions
@@ -6,7 +6,7 @@
{
Task<Instruction> GetInstructionAsync(Guid instructionId);
Task<Instruction> CreateInstructionToRecipeAsync(Guid recipeId, string description);
Task<Instruction> CreateInstructionWithImageToRecipeAsync(Guid recipeId, string description, IFormFile? photo);
Task RemoveInstructionFromRecipeAsync(Guid recipeId, Guid instructionId);