コード例 #1
0
        public async Task <ActionResult <IEnumerable <Run> > > GetAllRuns([FromQuery] int skierId, [FromQuery] uint season)
        {
            if (skierId == 0 || season == 0)
            {
                return(BadRequest());
            }

            return(Ok(await _runService.GetRunsForSkierInSeasons(skierId, season)));
        }