示例#1
0
        public IActionResult GetTeamStructure(string id)
        {
            if (Guid.TryParse(id, out Guid parsedId))
            {
                TeamStruct teamStruct = _teamManager.GetTeamStructure(parsedId);

                if (teamStruct.Id != Guid.Empty)
                {
                    return(Ok(teamStruct));
                }

                return(NotFound());
            }

            return(BadRequest());
        }