public async Task <IActionResult> AddToBasket(int basketId, [FromBody] AddItem item) { var catalogueItem = await _catalogueService.GetCatalogueItem(item.CatalogueItemId.Value); if (catalogueItem == null) { return(NotFound("No CatalogueItem found")); } await _basketService.AddItemToBasket(basketId, catalogueItem.Id, catalogueItem.Price, item.Quantity.Value); return(Ok()); }