public void AddNewAxe(AxeDTO axeItem) { if (axeItem != null) { axeRepository.AddAxe(axeItem); } }
public void AddNewAxe(Axe axeItem) { if (axeItem != null) { Enchantment enchantmentItem = enchantmentRepository.GetEnchantmentById(3); axeItem.EnchantmentId = enchantmentItem.EnchantmentId; axeRepository.AddAxe(axeItem); } }