Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult <List <TeamDto> > > Get()
        {
            var teams = await _teamManager.GetAllAsync();

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

            return(teams);
        }