Пример #1
0
        // GET: Home
        public IActionResult Index()
        {
            var newTicketData = new NewTicketData
            {
                Wager        = 0,
                Wallet       = WalletTransactionsController.GetWalletState(_context),
                Bonus        = 0,
                PossibleGain = 0.00
            };

            TicketsController.InitData(newTicketData);

            var vm = new
                     MatchesNewTicketViewModel
            {
                Matches       = _context.Match.ToList(),
                NewTicketData = newTicketData
            };

            return(View(vm));
        }
Пример #2
0
 internal static void InitData(NewTicketData newTicketData)
 {
     NewTicketData = newTicketData;
     _userPairs    = new List <Pair>();
 }