public void NewQuoteTransfer(string quote) { ObjectParameter tranDT = new ObjectParameter("TranDT", typeof(DateTime?)); ObjectParameter result = new ObjectParameter("Result", typeof(Int32?)); ObjectParameter debugMsg = new ObjectParameter("DebugMsg", typeof(string)); Error = ""; try { using (var context = new MONITOREntitiesQuoteLogIntegrationQuoteTransfer()) { context.usp_QL_NewQuoteTransfer(OperatorCode, quote, tranDT, result, 0, debugMsg); } } catch (Exception ex) { Error = (ex.InnerException != null) ? ex.InnerException.Message : ex.Message; } }