Exemple #1
0
        public void DeleteNonNorthAmericanCsm(out string errorMessage)
        {
            errorMessage = "";
            var result = new ObjectParameter("Result", typeof(Int32));
            var tranDt = new ObjectParameter("TranDT", typeof(DateTime));

            try // Remove Non-North American CSM mnemonic from quote
            {
                _context.usp_QT_DeleteQuoteManualProgramData(_quoteNumber, tranDt, result);
            }
            catch (Exception ex)
            {
                errorMessage = "Failed to delete Non-North American CSM data.";
                //if (ex.InnerException != null) MessageBox.Show(ex.InnerException.ToString().Remove(ex.InnerException.ToString().IndexOf("at System.")), "Error");
            }
        }