public async Task <IActionResult> UpdateLine(BasketLineUpdate basketLineUpdate) { var basketId = Request.Cookies.GetCurrentBasketId(settings); await basketService.UpdateLine(basketId, basketLineUpdate); return(RedirectToAction("Index")); }
public async Task UpdateLine(Guid basketId, BasketLineUpdate basketLineForUpdate) { await client.PutAsJson($"/api/baskets/{basketId}/basketLines/{basketLineForUpdate.LineId}", basketLineForUpdate); }