コード例 #1
0
        public static async Task <GrpcProduct> GetProductData(GrpcIdMessage grpcRequest)
        {
            try
            {
                var id      = grpcRequest.Id;
                var product = await ProductUseCaseController.GetProductDataAsync(id);

                return(ProductPresenter.PresentProduct(product));
            }
            catch (Exception e)
            {
                throw e;
            }
        }