private bool UpdateOutStandingBalance(decimal BeginDebt, decimal OutstandingDebt, int LastLogId) { try { using (var context = new RubberSoftEntities()) { var query = context.spt_UpdateOutStandingBalance(sCustomerId, BeginDebt, OutstandingDebt, LastLogId); return(true); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); return(false); } }