public ActionResult GetRaceForMonth(DateTime date) { var model = _raceService.GetRaces(date); return(PartialView("PartialRacesList", model)); }
public async Task <List <RaceResult> > Get() { var stravaAthlete = await HttpContext.TryGetStravaAthlete(); return(await _raceService.GetRaces(stravaAthlete.AccessToken, stravaAthlete.AthleteId)); }
// GET: api/Races public IQueryable <Race> GetRaces() { using (RaceService raceService = new RaceService(db)) return(raceService.GetRaces()); }