public IActionResult CreateNewShoppingCart() { try { var shoppingCartId = _shoppingCartManager.CreateShoppingCart(); return(StatusCode(201, new { id = shoppingCartId })); } catch (Exception ex) { return(StatusCode(500, new { ErrorMessage = ex.ToString() })); } }