private void SaveData(string NVOCCId) { BLL.DBInteraction dbinteract = new BLL.DBInteraction(); bool isedit = NVOCCId != "-1" ? true : false; if (!isedit) { if (!dbinteract.IsUnique("exp.mstSlotOperator", "SlotOperatorName", txtSlotOperatorName.Text.Trim())) { GeneralFunctions.RegisterAlertScript(this, "Operator Name must be unique. The given name has already been used for another Line. Please try with another one."); return; } } int result = dbinteract.AddEditSlotOperator(_userId, Convert.ToInt32(NVOCCId), txtSlotOperatorName.Text.Trim(), isedit); if (result > 0) { Response.Redirect("~/Export/ManageSlotOperator.aspx"); } else { GeneralFunctions.RegisterAlertScript(this, "Error Occured"); } }