public void SignOffUpdate(int rowId, string employeeCode, string initials, DateTime?signOffDate) { ObjectParameter tranDT = new ObjectParameter("TranDT", typeof(DateTime?)); ObjectParameter result = new ObjectParameter("Result", typeof(Int32?)); Error = ""; try { using (var context = new MONITOREntitiesQuoteLogIntegrationQuoteTransfer()) { context.usp_QL_QuoteTransfer_SignOff_Update(OperatorCode, rowId, employeeCode, initials, signOffDate, tranDT, result); } } catch (Exception ex) { Error = (ex.InnerException != null) ? ex.InnerException.Message : ex.Message; } }