Exemplo n.º 1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            List <Prediction> predictions = await betRepository.GetCurrentBetPredictionsAsync(GetUserId());

            var result = new BetslipViewModel {
                TicketId    = betRepository.GetCurrentTicketId(GetUserId()),
                Predictions = predictions,
                TotalOdds   = betRepository.GetCurrentTicketOdds(GetUserId())
            };

            return(View(result));
        }