示例#1
0
        public void UpdateCustomer()
        {
            Error = "";
            var result = new ObjectParameter("Result", typeof(Int32));
            var tranDt = new ObjectParameter("TranDT", typeof(DateTime));

            try
            {
                using (var context = new QuoteLogContext())
                {
                    context.usp_QT_Customer_Update(OperatorCode, CustomerCode, CustomerName, Address1, Address2, Address3, City, State, Country, PostalCode, Terms, LtaType,
                                                   tranDt, result);
                }
            }
            catch (Exception ex)
            {
                Error = (ex.InnerException != null)
                    ? "Failed to update the customer. " + ex.InnerException.Message
                    : "Failed to update the customer. " + ex.Message;
            }
        }