public void UpdatePlayerAttribute(PlayerAttribute playerAttribute, int id) { if (id != 0) { playerAttribute.Id = id; _playerAttributeRepository.Update(playerAttribute, id); } }
public PlayerAttribute AddPlayerAttribute(PlayerAttribute playerAttribute) { if (playerAttribute == null) { return null; } return _playerAttributeRepository.Add(playerAttribute); }