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