public List <usp_Web_QuoteLog_NewCustomer_GetRequests_Result> GetCustomerRequests() { var customerList = new List <usp_Web_QuoteLog_NewCustomer_GetRequests_Result>(); using (var context = new MONITOREntitiesQuoteLogIntegrationCustomer()) { customerList = context.usp_Web_QuoteLog_NewCustomer_GetRequests().ToList(); } return(customerList); }
public void SendApprovedEmail() { ObjectParameter tranDT = new ObjectParameter("TranDT", typeof(DateTime?)); ObjectParameter result = new ObjectParameter("Result", typeof(Int32?)); Error = ""; try { using (var context = new MONITOREntitiesQuoteLogIntegrationCustomer()) { context.usp_Web_QuoteLog_NewCustomer_Approve_SendEmail(CustomerCode, tranDT, result); } } catch (Exception ex) { Error = (ex.InnerException != null) ? ex.InnerException.Message : ex.Message; } }