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