public ActionResult HardDelete(int id) { try { RecruitmentService recruitmentservice = new RecruitmentService(); recruitmentservice.HardDeleteRecruitment(id); TempData["status"] = "Employee Record successfully deleted"; return(RedirectToAction("Index")); } catch (Exception ex) { TempData["error"] = "Something went wrong while deleting Employee Record"; return(View()); } }