Пример #1
0
        public ActionResult GetRaceForMonth(DateTime date)
        {
            var model = _raceService.GetRaces(date);

            return(PartialView("PartialRacesList", model));
        }
Пример #2
0
        public async Task <List <RaceResult> > Get()
        {
            var stravaAthlete = await HttpContext.TryGetStravaAthlete();

            return(await _raceService.GetRaces(stravaAthlete.AccessToken, stravaAthlete.AthleteId));
        }
Пример #3
0
 // GET: api/Races
 public IQueryable <Race> GetRaces()
 {
     using (RaceService raceService = new RaceService(db))
         return(raceService.GetRaces());
 }