示例#1
0
        public async Task <List <string> > Analysts()
        {
            var context = new DataSourcesRepository();

            var results = await context.GetAnalysts();

            return(results.ToList());
        }
示例#2
0
        public async Task <List <BrokerDTO> > Brokers()
        {
            var context = new DataSourcesRepository();

            var results = await context.GetBrokers(false);

            return(results.Select(x => new BrokerDTO()
            {
                BrokerID = x.ID, Name = x.Name.ToUpper()
            }).ToList());
        }