Ejemplo n.º 1
0
        public PortfolioAPI.Models.Rest.CustomerPortfolioResponse Get(int customerId)
        {
            var portfo   = _customerPortfolioRepository.GetCustomerPortfolio(customerId);
            var response = portfo.ConvertToGrpcCustomerPortfolio();

            return(response);
        }
        public override Task <GetCustomerPortfolioResponse> GetCustomerPortflio(GetCustomerPortfolioRequest request, ServerCallContext context)
        {
            var portoflio = _customerPortfolioRepository.GetCustomerPortfolio(request.CustomerId);

            var grpcPortoflio = portoflio.ConvertToGrpcCustomerPortfolio();

            return(Task.FromResult(new GetCustomerPortfolioResponse()
            {
                CustomerPortfolio = grpcPortoflio
            }));
        }