public ActionResult <IEnumerable <DoubleLeagueStandingsReadDto> > GetDoubleLeagueStandings(int leagueId) { try { string userId = User.Identity.Name; bool permission = _doubleLeagueMatchService.CheckLeaguePermission(leagueId, int.Parse(userId)); if (!permission) { return(Forbid()); } var standings = _doubleLeagueMatchService.GetDoubleLeagueStandings(leagueId); return(Ok(_mapper.Map <IEnumerable <DoubleLeagueStandingsReadDto> >(standings))); } catch (Exception e) { return(StatusCode(500, e.Message)); } }