public async Task <ActionResult <TeamDto> > Get(int id) { var teamDto = await _teamManager.GetByIdAsync(id); if (teamDto == null) { return(BadRequest()); } return(teamDto); }
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)))); }