Esempio n. 1
0
    protected void lnkDisableBranch_Click(object sender, EventArgs e)
    {
        string sSelBranchID = this.hdnSelectedBranchID.Value;
        int    iSelBranchID = Convert.ToInt32(sSelBranchID);

        ContactBranches ContactBranchManager = new ContactBranches();

        ContactBranchManager.DisableBranch(iSelBranchID);

        PageCommon.WriteJsEnd(this, "Disabled partner branch successfully.", PageCommon.Js_RefreshSelf);
    }
Esempio n. 2
0
    private void DisableBranch(string[] items)
    {
        int iItem = 0;

        foreach (var item in items)
        {
            if (int.TryParse(item, out iItem))
            {
                try
                {
                    _bContactBranches.DisableBranch(iItem);
                }
                catch (Exception exception)
                {
                    LPLog.LogMessage(exception.Message);
                }
            }
        }
    }