public IHttpActionResult GetActiveRaceDay(string raceDayKey) { Service.RaceDay.Contracts.PoolService.ActiveRaceDay activeRaceDay = _raceDayServiceGateway.FindActiveRaceDay(RaceDayKey.FromString(raceDayKey)); return(Ok(RestResult <ActiveRaceDay> .CreateSuccess(_mapper.Map <ActiveRaceDay>(activeRaceDay)))); }
public IHttpActionResult GetProductsForTimeline(string raceDayKey) { GamesForRaceDay gamesForRaceDay = _raceDayServiceGateway.GetGamesForRaceDay(RaceDayKey.FromString(raceDayKey)); return(Ok(RestResult <ProductsForTimeline> .CreateSuccess(_viewModelPopulator.Populate(gamesForRaceDay)))); }
public static bool IsDomestic(this RaceDayKey raceDayKey) { return(!Regex.IsMatch(raceDayKey.TrackKey.Code, "^(L[134]|F[1-9])")); }
public IHttpActionResult GetInvestmentForRaceDay(string raceDayKey) { var totalInvestmentsForRaceDay = _raceDayServiceGateway.GetTotalInvestmentsForRaceDay(RaceDayKey.FromString(raceDayKey)); return(Ok(RestResult <List <TotalInvestmentForPool> > .CreateSuccess(_mapper.Map <List <TotalInvestmentForPool> >(totalInvestmentsForRaceDay)))); }
public IHttpActionResult GetWeatherForRaceDay(string raceDayKey) { Service.RaceDay.Contracts.WeatherService.WeatherForRaceDay weather = _raceDayServiceGateway.GetWeatherForRaceDay(RaceDayKey.FromString(raceDayKey)); return(Ok(RestResult <WeatherForRaceDay> .CreateSuccess(_mapper.Map <WeatherForRaceDay>(weather)))); }