private bool AddWeightBalance(int PriceId, decimal BeginBalanceAmt, decimal WeightBalanceAmt, int LastLogId) { try { using (var context = new RubberSoftEntities()) { var query = context.spt_AddWeightBalance(sCustomerId, PriceId, BeginBalanceAmt, WeightBalanceAmt, LastLogId); return(true); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); return(false); } }