public async Task <ActionResult <TeamDto> > Get(int id)
        {
            var teamDto = await _teamManager.GetByIdAsync(id);

            if (teamDto == null)
            {
                return(BadRequest());
            }

            return(teamDto);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetById(int id)
        {
            var result = await _teamManager.GetByIdAsync(id);

            return(Ok(new ApiResponse(_localizationService, _logger).Ok(_mapper.Map <Team, TeamResponse>(result))));
        }