public void UpdateItemCountrer(int listToItemId, int counter) { ServiceValidator.ValidateGreaterThanZero(listToItemId, nameof(listToItemId)); ServiceValidator.ValidateGreaterThanZero(counter, nameof(counter)); _dac.UpdateCountForItemInDisposeList(listToItemId, counter); }
public void MoveToShoppingList(int listToItemId) { ServiceValidator.ValidateGreaterThanZero(listToItemId, nameof(listToItemId)); _dac.MoveItemToShoppingList(listToItemId); }
public void DeleteItem(int listToItemId) { ServiceValidator.ValidateGreaterThanZero(listToItemId, nameof(listToItemId)); _dac.DeleteItem(listToItemId); }