private void UpdatePlayer(int playerID, int clubID, string playerName, string position, string nationality, DateTime birthday, float height, float weight) { if (PlayerDAO.UpdatePlayer(playerID, clubID, playerName, position, nationality, birthday, height, weight)) { MessageBox.Show("CẬP NHẬT CẦU THỦ THÀNH CÔNG", "THÔNG BÁO"); } else { MessageBox.Show("CẬP NHẬT CẦU THỦ THẤT BẠI", "THÔNG BÁO"); } }
public void UpdatePlayer(Player player) { PlayerDAO db = new PlayerDAO(); db.UpdatePlayer(player); }