Beispiel #1
0
 private bool CheckDataOutStandingBalance(int id)
 {
     try
     {
         using (var context = new RubberSoftEntities())
         {
             var query = context.spt_GetOutStandingBalance().Where(o => o.CustomerId == id).ToList();
             if (query.Count > 0)
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message);
         return(false);
     }
 }