コード例 #1
0
        public IEnumerable <TeamPlayer> Get()
        {
            TeamPlayerLogic logic     = new TeamPlayerLogic();
            UserLogic       userLogic = new UserLogic();
            int             id        = userLogic.GetIdByNameUser(User.Identity.Name);

            return(logic.GetAllPlayers(id));
        }
コード例 #2
0
        public IEnumerable <TeamPlayer> GetTeamPlayers(int id)
        {
            TeamPlayerLogic logic = new TeamPlayerLogic();

            return(logic.GetAllPlayers(id));
        }