public ChangeResult AddPlayerToTeam(Models.Player player)
 {
     return(PlayerTeam.Save(new PlayerTeamDto()
     {
         TeamId = TeamId,
         PlayerId = player.PlayerId
     }));
 }
示例#2
0
        public ChangeResult SavePlayerTeam(Guid teamId)
        {
            PlayerTeamDto dto = new PlayerTeamDto()
            {
                PlayerId = Player.PlayerId,
                TeamId   = teamId
            };

            return(PlayerTeam.Save(dto));
        }