public async Task <IActionResult> UpdateTeamAsync(TeamContractModel teamModel)
        {
            try
            {
                var UserIdOfTeam = await teamRepo.GetAssociatedUserIdForTeamAsync(teamModel.TeamId);

                // Check if the corresponding team is of that user.
                if (await CheckIfAuthorized(await GetCurrentUser(), UserIdOfTeam) != false)
                {
                    // Create teamstatsId for the team
                    return(await teamRepo.UpdateTeamAsync(teamModel));
                }

                //not authorized?? or not found??
                return(NotFound());
            }
            catch (Exception)
            {
                //log??
                return(BadRequest());
            }
        }