Esempio n. 1
0
        public async Task <IActionResult> GetPastBetsByUser(int userId, [FromQuery] BetParams betParams)
        {
            var bets = await betRepository.GetPastBetsByUser(userId, betParams);

            Response.AddPagination(bets.CurrentPage, bets.PageSize, bets.TotalCount, bets.TotalPages);

            return(Ok(bets));
        }