protected void lnkDeleteBranch_Click(object sender, EventArgs e) { string sSelBranchID = this.hdnSelectedBranchID.Value; int iSelBranchID = Convert.ToInt32(sSelBranchID); ContactBranches ContactBranchManager = new ContactBranches(); ContactBranchManager.RomoveBranch(iSelBranchID); PageCommon.WriteJsEnd(this, "Deleted partner branch successfully.", PageCommon.Js_RefreshSelf); }
private void RemoveBranch(string[] items) { int iItem = 0; foreach (var item in items) { if (int.TryParse(item, out iItem)) { try { _bContactBranches.RomoveBranch(iItem); } catch (Exception exception) { LPLog.LogMessage(exception.Message); } } } }
protected void btnDelete_Click(object sender, EventArgs e) { _bContactBranches.RomoveBranch(Convert.ToInt32(sContactBranchID)); PageCommon.WriteJsEnd(this, "Deleted partner branch successfully.", "window.parent.location.href='PartnerBranchList.aspx';"); }