Exemplo n.º 1
0
        private bool UpdateData()
        {
            try
            {
                using (var context = new RubberSoftEntities())
                {
                    var query = context.spt_UpdateCustomer(sCustomerId, stCustomerTypeId, CustomerGroupId, sCustomerCode, sCustomerName,
                                                           TxtCustomerAddress.Text, TxtLicensePlate.Text, TxtPhone.Text, false, ClassProperty.permisUserID);

                    return(true);
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }