Ejemplo n.º 1
0
        public int UpdateWeapon(int weaponID, string oldName, string newName, string oldDescription,
                                string newDescription, int oldAttack, int newAttack)
        {
            int result = 0;

            try
            {
                result = InventoryAccessor.UpdateWeapon(weaponID, oldName, newName, oldDescription,
                                                        newDescription, oldAttack, newAttack);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("There was a problem connecting to the server.", ex);
            }

            return(result);
        }