Use model instead of view data
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
const recipeId = '@Model.RecipeId';
|
const recipeId = '@Model.RecipeId';
|
||||||
|
|
||||||
|
|
||||||
async function moveInstructionUp(instructionId) {
|
async function moveInstructionUp(instructionId) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`/Recipe/${recipeId}/Instruction/${instructionId}/move-up`, {
|
const response = await fetch(`/Recipe/${recipeId}/Instruction/${instructionId}/move-up`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user