public void UpdatePlayer(Player player) { Execute(@" update Player set Name = @name TeamId = @teamId", player); }
public Player CreatePlayer(PlayerDto playerDto) { var player = new Player(); player.PlayerId = _playerId; player.FirstName = playerDto.FirstName; player.Surname = playerDto.SurName; player.TeamId = playerDto.TeamId; _playerId++; return player; }
public void CreatePlayer(Player player) { throw new System.NotImplementedException(); }
public void CreatePlayer(Player player) { Execute(@" insert into Player values(@name, @TeamId", player); }