public int DeleteWeapon(int weaponID) { int result = 0; try { result = InventoryAccessor.DeleteWeapon(weaponID); } catch (Exception ex) { throw new ApplicationException("There was a problem connecting to the server.", ex); } return(result); }