protected void btnDelete_Click(object sender, EventArgs e) { bool msg = Claim_DAL.Delete(Convert.ToInt32(ViewState["Claim_id"])); if (msg == true) { Label1.Text = "Claim Has Been Deleted Successfully!"; } else { Label1.Text = "Error -> " + msg; } BindData(); udp.Update(); }
public bool Delete(int id) { return(Claim_DAL.Delete(id)); }