public async Task <IActionResult> EditTeam(TeamViewModel viewModel)
        {
            try
            {
                Team mapToTeam = TeamMapper.MapTeam(viewModel);
                Team team      = await _teamServices.EditTeamAsync(mapToTeam);

                return(RedirectToAction("Index", new { id = team.TeamId }));
            }
            catch (GlobalException e)
            {
                return(BadRequest(e.Message));
            }
        }