Exemplo n.º 1
0
        public void SaveMnemonics(string mnemonicVehiclePlant, string releaseId, string version, out string errorMessage)
        {
            errorMessage = "";
            var result = new ObjectParameter("Result", typeof(Int32));
            var tranDt = new ObjectParameter("TranDT", typeof(DateTime));

            try // Tie CSM Mnemonic to Quote
            {
                _context.usp_QT_InsertQuoteCSM(_quoteNumber, mnemonicVehiclePlant, releaseId, version, tranDt, result);
            }
            catch (Exception ex)
            {
                errorMessage = string.Format("Error occured when attempting to save {0} to quote {1}.", mnemonicVehiclePlant, _quoteNumber);
                //if (ex.InnerException != null) MessageBox.Show(ex.InnerException.ToString().Remove(ex.InnerException.ToString().IndexOf("at System.")), "Error");
            }
        }