public void SaveDocumentationAnswers(string quote, string description, string answer) { ObjectParameter tranDT = new ObjectParameter("TranDT", typeof(DateTime?)); ObjectParameter result = new ObjectParameter("Result", typeof(Int32?)); Error = ""; try { using (var context = new MONITOREntitiesQuoteLogIntegrationQuoteTransfer()) { var collection = context.usp_QL_QuoteTransfer_Documentation_Insert(OperatorCode, quote, description, answer, tranDT, result); } } catch (Exception ex) { Error = (ex.InnerException != null) ? ex.InnerException.Message : ex.Message; } }