コード例 #1
0
        public static async Task <GrpcAccount> GetAccountByMarketplaceId(GrpcGetByIdReq grpcRequest)
        {
            try
            {
                var id       = GrpcGetByIdReqAdapter.Adapt(grpcRequest);
                var parsedId = Int64.Parse(id);
                var account  = await AccountUseCases.Get.ByMercadoLivreId(parsedId);

                return(AccountPresenter.Present(account));
            }
            catch (Exception)
            {
                throw;
            }
        }