public IActionResult delete(long faculty_id) { try { _facultyService.delete(faculty_id); AlertHelper.setMessage(this, "Faculty deleted successfully.", messageType.success); } catch (Exception ex) { AlertHelper.setMessage(this, ex.Message, messageType.error); } return(RedirectToAction(nameof(Index))); }