Пример #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ArrayList users = cblUsers.GetSelectedValues();

            d.CaseUserLink cul    = new d.CaseUserLink();
            int            caseId = getCaseId();

            cul.DeleteByCase(caseId);
            foreach (string userId in users)
            {
                cul.Create(caseId, Convert.ToInt32(userId));
            }
            Response.Redirect("caseList.aspx");
        }