private bool DeleteData(int cid) { try { using (var context = new RubberSoftEntities()) { var query = context.spt_DeleteCustomer(cid, ClassProperty.permisUserID); return(true); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); return(false); } }