public bool IsValidateBetting(int bettingId) { List <DM.Betting> lst = TNHelper.GetAllActiveBetting(); if (lst != null) { return(lst.Exists(p => p.Id == bettingId)); } return(false); }
private void LoadData() { List <Betting> lst = TNHelper.GetAllActiveBetting(); if (lst != null && lst.Count > 0) { rptList.DataSource = lst; rptList.DataBind(); } else { Utils.ShowMessage(lblMsg, "Không tìm thấy dữ liệu yêu cầu"); } }