public ActionResult DeleteResultConfirmed(int?IDKQ, int?IDQN) { if (IDKQ == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } KetQuaKiemTraModel model = new KetQuaKiemTraModel(); model.DeleteResult(IDKQ); if (IDQN != null) { return(RedirectToAction("Details", new { id = IDQN })); } else { return(RedirectToAction("Index")); } }