public void update(TennisEntity tennisPlayer)
 {
     var updatedTennisPlayer = new TennisModel()
     {
         Id = tennisPlayer.Id, Country = tennisPlayer.Country, Name = tennisPlayer.Name
     };
 }
        public void CreatePlayer(TennisModel tennisplayer)
        {
            var tenPlayer = new TennisModel()
            {
                Id = tennisplayer.Id, Country = tennisplayer.Country, Name = tennisplayer.Name
            };

            _ITennisRepository.tennisPlayers().Add((tenPlayer));
        }
示例#3
0
        public TennisEntity MapModelToEntity(TennisModel tennisModel)
        {
            var TennisEntity = new TennisEntity()
            {
                Id      = tennisModel.Id,
                Country = tennisModel.Country,
                Name    = tennisModel.Name
            };

            return(TennisEntity);
        }