public int UpdateItem(int itemID, string oldName, string newName, string oldDescription, string newDescription, float oldAttackBoost, float newAttackBoost, float oldDefenseBoost, float newDefenseBoost) { int result = 0; try { result = InventoryAccessor.UpdateItem(itemID, oldName, newName, oldDescription, newDescription, oldAttackBoost, newAttackBoost, oldDefenseBoost, newDefenseBoost); } catch (Exception ex) { throw new ApplicationException("There was a problem connecting to the server.", ex); } return(result); }