Exemple #1
0
        public string GetBetList(int pageNumber, int userId)
        {
            var betList = repository.ListBet(pageNumber, userId);
            List <BetDomenModel> betListDomen = new List <BetDomenModel>();

            foreach (Bet e in betList)
            {
                BetDomenModel eventItemDomen = Mapper.Map <BetDomenModel>(e);
                betListDomen.Add(eventItemDomen);
            }
            return(JsonConvert.SerializeObject(betListDomen));
        }