Пример #1
0
        public override async Task <EmptyResponse> UpdateFromUser(UpdateUserBasketRequest request, ServerCallContext context)
        {
            _logger.LogInformation(">>> Begin BasketService.UpdateFromUser gRPC method.");
            await _svc.UpdateBasketFromUser(request.User, request.BeerId);

            _logger.LogInformation("<<< Ended BasketService.UpdateFromUser gRPC method.");
            return(new EmptyResponse());
        }
Пример #2
0
        public async Task <IActionResult> UpdateFromUser(string user, int beerId)
        {
            await _svc.UpdateBasketFromUser(user, beerId);

            return(Ok());
        }