Change from HttpPost to HttpDelete
This commit is contained in:
@@ -305,8 +305,8 @@
|
|||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST: /Recipe/{recipeId}/RemoveIngredient/{ingredientId}
|
// DELETE: /Recipe/{recipeId}/RemoveIngredient/{ingredientId}
|
||||||
[HttpPost("{recipeId}/RemoveIngredient/{ingredientId}")]
|
[HttpDelete("{recipeId}/RemoveIngredient/{ingredientId}")]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public async Task<IActionResult> RemoveIngredientConfirmed(Guid recipeId, Guid ingredientId)
|
public async Task<IActionResult> RemoveIngredientConfirmed(Guid recipeId, Guid ingredientId)
|
||||||
{
|
{
|
||||||
@@ -338,8 +338,8 @@
|
|||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST: /Recipe/{recipeId}/RemoveInstruction/{instructionId}
|
// DELETE: /Recipe/{recipeId}/RemoveInstruction/{instructionId}
|
||||||
[HttpPost("{recipeId}/RemoveInstruction/{instructionId}")]
|
[HttpDelete("{recipeId}/RemoveInstruction/{instructionId}")]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public async Task<IActionResult> RemoveInstructionConfirmed(Guid recipeId, Guid instructionId)
|
public async Task<IActionResult> RemoveInstructionConfirmed(Guid recipeId, Guid instructionId)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user