public PlayerModel Create( Player player ) { return new PlayerModel { FirstName = player.FirstName, LastName = player.LastName, PlayerId = player.ID, TeamId = player.Team != null ? player.Team.ID : 0, TeamName = player.Team != null ? player.Team.Name : null }; }
public GameEvent Create( Game gameEntity, Player playerEntity, int pointValue ) { return new GameEvent {Game = gameEntity, Player = playerEntity, PointValue = pointValue, UpdatedDate = DateTime.Now}; }