public IEnumerable <TeamPlayer> Get() { TeamPlayerLogic logic = new TeamPlayerLogic(); UserLogic userLogic = new UserLogic(); int id = userLogic.GetIdByNameUser(User.Identity.Name); return(logic.GetAllPlayers(id)); }
public IEnumerable <TeamPlayer> GetTeamPlayers(int id) { TeamPlayerLogic logic = new TeamPlayerLogic(); return(logic.GetAllPlayers(id)); }