示例#1
0
        public async Task <Investment> RefreshInvestment(Investment obj = null)
        {
            if (!string.IsNullOrWhiteSpace(obj.Ticker))
            {
                var stock = await this._portfolioService.GetStock(obj.Ticker).ConfigureAwait(false);

                if (stock != null)
                {
                    obj.Hydrate(stock);
                }
            }
            return(obj);
        }