public async Task <IActionResult> GetAll(int skip, int take) { var result = await _teamManager.GetAllAsync(); return(Ok(new ApiResponse(_localizationService, _logger).Ok( _mapper.Map <IList <Team>, IList <TeamResponse> >(result.EntityList), result.Count))); }
public async Task <ActionResult <List <TeamDto> > > Get() { var teams = await _teamManager.GetAllAsync(); if (teams == null) { return(BadRequest()); } return(teams); }