public MatchesPage(Match matchIn) { InitializeComponent(); bool singleMatchViewIn = true; BindingContext = new OddsViewModel(matchIn, singleMatchViewIn); }
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")); } }