Exemple #1
0
        protected internal void DeleteOffender(object sender, EventArgs e)
        {
            int PersonID = Convert.ToInt32(((LinkButton)sender).CommandArgument);
            Offender thisOffender = Offender.Get(PersonID);
            int CaseID = Convert.ToInt32(Session["CaseID"]);
            thisCase = Case.Get(CaseID);

            thisCase.DeleteOffender(thisOffender);
            thisCase = Case.Get(CaseID);
            BindData();
        }