Change from HttpPost to HttpDelete
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
return View(recipe);
|
||||
}
|
||||
|
||||
// POST: /Recipe/{recipeId}/Delete
|
||||
// DELETE: /Recipe/{recipeId}/Delete
|
||||
[HttpDelete("{recipeId}/Delete")]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> DeleteConfirmed(Guid recipeId)
|
||||
|
||||
Reference in New Issue
Block a user