public void update(TennisEntity tennisPlayer)
 {
     var updatedTennisPlayer = new TennisModel()
     {
         Id = tennisPlayer.Id, Country = tennisPlayer.Country, Name = tennisPlayer.Name
     };
 }
示例#2
0
        public TennisEntity MapModelToEntity(TennisModel tennisModel)
        {
            var TennisEntity = new TennisEntity()
            {
                Id      = tennisModel.Id,
                Country = tennisModel.Country,
                Name    = tennisModel.Name
            };

            return(TennisEntity);
        }