public IActionResult DeleteAnswerSheet(int id) { if (ModelState.IsValid) { TempData["Submit"] = ""; TempData["DeleteAnswerSheet"] = "deleteanswersheet"; var paper = _paperRepository.DeleteAnswerSheet(id); return(RedirectToAction(nameof(ShowAttendedPaper))); } return(View()); }