コード例 #1
0
        public bool IsValidateBetting(int bettingId)
        {
            List <DM.Betting> lst = TNHelper.GetAllActiveBetting();

            if (lst != null)
            {
                return(lst.Exists(p => p.Id == bettingId));
            }

            return(false);
        }
コード例 #2
0
        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");
            }
        }