Example #1
0
        public async Task <ActionResult <TeamPostResponse> > GetTeam(long id)
        {
            var team = await _context.GetTeam(id);

            if (team == null || !TeamExists(id))
            {
                return(NotFound());
            }

            return(new TeamPostResponse(team));
        }