public IActionResult deletetest() { int id = Convert.ToInt32(HttpContext.Request.Form["id"]); int exam = Convert.ToInt32(HttpContext.Request.Query["exam"]); Exam.DeleteTest(exam, id); return(Content("1")); }