示例#1
0
        public async Task <CustomResponse> AddInstructionsToRecipe(int recipeId, List <Instruction> instructions)
        {
            for (int i = 0; i < instructions.Count; i++)
            {
                CustomResponse response = await AddInstructionToRecipe(recipeId, instructions[i]);

                if (response.Value == 0)
                {
                    return(response);
                }
            }
            return(CustomResponse.SuccessMessage());
        }