Example #1
0
        public bool AddCustomerPrice(int CustomerId, string PriceName, DateTime sSaleDate, decimal sSalePriceAdvance,
                                     double sWeightAmount, decimal sDeliveryPrice, bool IsDefault)
        {
            try
            {
                using (var context = new RubberSoftEntities())
                {
                    var query = context.spt_AddCustomerPrice(PriceName, CustomerId, sSaleDate, sSalePriceAdvance,
                                                             sWeightAmount, sDeliveryPrice, IsDefault);

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