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