protected void ORGRepeater_ItemCommand(object source, RepeaterCommandEventArgs e) { int organizationId = 0; try { organizationId = Convert.ToInt32(e.CommandArgument); } catch (Exception ex) { log.Error("Error getting object id", ex); } if (organizationId <= 0) { SystemMessages.DisplaySystemErrorMessage(Resources.Organization.MessageNoComplete); return; } if (e.CommandName == "Restore") { try { TrashBLL.RestoreTrash(OrganizationHF.Value, organizationId); } catch (Exception ex) { SystemMessages.DisplaySystemErrorMessage(ex.Message); return; } ORGRepeater.DataBind(); } if (e.CommandName == "DeleteOrg") { try { OrganizationBLL.DeletePermanently(organizationId); } catch (Exception ex) { SystemMessages.DisplaySystemErrorMessage(ex.Message); return; } ORGRepeater.DataBind(); } }