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