Пример #1
0
        public MatchesPage(Match matchIn)
        {
            InitializeComponent();
            bool singleMatchViewIn = true;

            BindingContext = new OddsViewModel(matchIn, singleMatchViewIn);
        }
Пример #2
0
        public ActionResult Odds(int sportId, int eventId)
        {
            IPinnacleApi pinnacle = new PinnacleApi(_token);
            OddsModel    odds     = pinnacle.GetOddsForEvent(sportId, eventId);

            OddsViewModel oddsVms = _mapper.Map <OddsViewModel>(odds);

            if (oddsVms != null)
            {
                return(View(oddsVms));
            }
            else
            {
                return(View("NoData"));
            }
        }