public void SendEmail() { var result = new ObjectParameter("Result", typeof(Int32)); var tranDt = new ObjectParameter("TranDT", typeof(DateTime)); try { using (var context = new QuoteLogContext()) { context.usp_QT_Customer_Request_SendEmail(CustomerCode, tranDt, result); } } catch (Exception) { } }