public async Task <bool> UpdateCartItemQuantityAsync(string userId, long orderItemId, int quantity) { using var log = BeginFunction(nameof(CartUserService), nameof(UpdateCartItemQuantityAsync), userId, orderItemId, quantity); try { //AssertIsEndUser(userId); await Assert(SecurityPolicy.IsAuthorized, userId).ConfigureAwait(false); var ordererReference = CreateOrdererReference.FromUserId(userId); var ordererId = await OrderMicroService.AllocateOrdererAsync(ordererReference).ConfigureAwait(false); var result = await OrderMicroService.UpdateCartItemQuantityAsync(ordererId, orderItemId, quantity).ConfigureAwait(false); log.Result(result); return(result); } catch (Exception ex) { log.Exception(ex); throw; } }