public async Task <IActionResult> GetOneTeam(
            int id,
            string search,
            int limit         = 10,
            Sort sort         = Sort.Asc,
            TeamSort sortby   = TeamSort.Credits,
            TeamExpand expand = TeamExpand.Flat
            )
        {
            TeamAdminResponse team = await AdoNetDao.TeamDao.GetTeamInfo(id);

            if (expand == TeamExpand.Flat)
            {
                return(Ok(team));
            }
            if (expand == TeamExpand.Images)
            {
                team.TeamPhotos = await AdoNetDao.TeamDao.GetTeamImageDocs(id);

                return(Ok(team));
            }
            return(NotFound());
        }
        public async Task <IActionResult> GetAllTeams(
            string search,
            int limit         = 10,
            Sort sort         = Sort.Asc,
            TeamSort sortby   = TeamSort.Credits,
            TeamExpand expand = TeamExpand.Flat
            )
        {
            if (expand == TeamExpand.Flat)
            {
                List <TeamFlat> teams = await AdoNetDao.TeamDao.GetFlatTeams(search, sort, sortby, limit);

                return(Ok(teams));
            }
            if (expand == TeamExpand.Info)
            {
                List <TeamInfo> teams = await AdoNetDao.TeamDao.GetAllTeams(search, sort == Sort.Asc, sortby, limit);

                return(Ok(teams));
            }

            return(NotFound());
        }