protected void btnSetStateDone_Click(object sender, EventArgs e) { try { int id = Convert.ToInt32((sender as LinkButton).CommandArgument); Claim claim = new Claim(id); claim.IdCreator = User.Id; claim.SetDoneState(); RedirectWithParams(); } catch (Exception ex) { ServerMessageDisplay(new[] { phServerMessage }, ex.Message, true); } }