public async Task <IActionResult> UpdateUserBasket([FromBody] UserBasketItemToChange basketItemUpdated) { await basketService.UpdateItem(basketItemUpdated.id, basketItemUpdated.itemId, basketItemUpdated.quantity); return(Ok()); }
public async Task <IActionResult> RemoveItemFromBasket([FromBody] UserBasketItemToChange basketItemToRemove) { await basketService.RemoveItem(basketItemToRemove.id, basketItemToRemove.itemId); return(Ok()); }