Example #1
0
        public async Task <IActionResult> GetTeamResultsAll(string teamCode)
        {
            if (string.IsNullOrEmpty(teamCode))
            {
                return(NotFound());
            }

            var team = await _wpbService.GetTeamByTeamCodeDto(teamCode);

            if (team == null)
            {
                return(NotFound());
            }

            var query = _wpbService.GetResultsTeamAsDtoAll(teamCode).OrderBy(x => x.TimeStamp);

            return(Ok(query));
        }