public void RemoveItemFromList(string itemName, double price, string url, string picKey, Guid userID) { var item = itemService.GetItem(itemName); if (item == null) { throw new ItemDoesNotExistException("Item " + itemName + " does not exist."); } ItemList itemlist = new ItemList(userID, item.itemID); if (!itemlistService.RemoveItemList(itemlist)) { throw new DeleteFailedException("Could not remove item from list."); } }