Пример #1
0
        public async Task <KeyNameGroup> CreateBistKeyGroup()
        {
            var list = (await _stockContext.GetBist()).Select(x => new KeyNameItem
            {
                Key = x.StockName.ToUpper()
            });

            return(new KeyNameGroup {
                GroupName = "Bist", KeyNameList = list.ToList()
            });
        }
Пример #2
0
        public async Task <IEnumerable <StockCodeRate> > GetLatestBist()
        {
            var bistData = await _contextService.GetBist();

            return(bistData.Select(x => x.ConvertToDto()));
        }