Ejemplo n.º 1
0
        protected internal void DeleteAffiliate(object sender, EventArgs e)
        {
            int PersonID = Convert.ToInt32(((LinkButton)sender).CommandArgument);
            Affiliate thisAffiliate = Affiliate.Get(PersonID);
            int CaseID = Convert.ToInt32(Session["CaseID"]);
            thisCase = Case.Get(CaseID);

            thisCase.DeleteAffiliate(thisAffiliate);
            thisCase = Case.Get(CaseID);
            BindData();
        }