public IActionResult Delete([FromForm] string ArticleNo, [FromForm] string Category) { JSONData jSONData = new JSONData(); if (jSONData.Delete(ArticleNo, Category)) { return(View("DeletedRecord", ArticleNo)); } else { return(View("Error", $"Article number {ArticleNo} not found.")); } }